mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Transaction depth should error if not implemented by child classes
This commit is contained in:
parent
8bd73bb9cd
commit
27b60ae989
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user