FIX Transaction depth should error if not implemented by child classes

This commit is contained in:
Daniel Hensby 2018-06-21 14:26:21 +01:00 committed by Daniel Hensby
parent 1048520fbe
commit 793aafae91
No known key found for this signature in database
GPG Key ID: D8DEBC4C8E7BC8B9

View File

@ -676,7 +676,7 @@ abstract class Database
public function transactionDepth()
{
// Placeholder error for transactional DBs that don't expose depth
if (!$this->supportsTransactions()) {
if ($this->supportsTransactions()) {
user_error(get_class($this) . " does not support transactionDepth", E_USER_WARNING);
}
return 0;