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
1048520fbe
commit
793aafae91
@ -676,7 +676,7 @@ abstract class Database
|
|||||||
public function transactionDepth()
|
public function transactionDepth()
|
||||||
{
|
{
|
||||||
// Placeholder error for transactional DBs that don't expose depth
|
// 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);
|
user_error(get_class($this) . " does not support transactionDepth", E_USER_WARNING);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user