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:
nate 2007-03-29 00:49:53 +00:00
parent f1c1c70664
commit f32cc3eb79

View file

@ -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();