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
parent 8bd73bb9cd
commit 27b60ae989
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E

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;