mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 19:38:26 +00:00
Adding DboSource destructor rollback fix (Ticket #2110)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4703 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
f1c1c70664
commit
f32cc3eb79
1 changed files with 2 additions and 1 deletions
|
@ -1669,7 +1669,8 @@ class DboSource extends DataSource {
|
||||||
*/
|
*/
|
||||||
function __destruct() {
|
function __destruct() {
|
||||||
if ($this->_transactionStarted) {
|
if ($this->_transactionStarted) {
|
||||||
$this->rollback();
|
$null = null;
|
||||||
|
$this->rollback($null);
|
||||||
}
|
}
|
||||||
$this->close();
|
$this->close();
|
||||||
parent::__destruct();
|
parent::__destruct();
|
||||||
|
|
Loading…
Reference in a new issue