mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-06-29 07:59:31 +02:00
Restore check for zero or negative transaction nesting
This commit is contained in:
parent
d8430f549d
commit
df257686c1
|
@ -360,7 +360,10 @@ class MySQLDatabase extends Database
|
|||
return false;
|
||||
}
|
||||
--$this->transactionNesting;
|
||||
$this->query('COMMIT AND ' . ($chain ? '' : 'NO ') . 'CHAIN');
|
||||
if ($this->transactionNesting <= 0) {
|
||||
$this->transactionNesting = 0;
|
||||
$this->query('COMMIT AND ' . ($chain ? '' : 'NO ') . 'CHAIN');
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user