diff --git a/Doctrine/DBAL/Driver/PDODblib/Connection.php b/Doctrine/DBAL/Driver/PDODblib/Connection.php index 3e004d7..0713256 100644 --- a/Doctrine/DBAL/Driver/PDODblib/Connection.php +++ b/Doctrine/DBAL/Driver/PDODblib/Connection.php @@ -69,9 +69,9 @@ private function _pdoTransactionsSupported() { */ public function rollback() { if ($this->_pdoTransactionsSupported() === true) { - parent::rollback(); - } else { $this->exec('ROLLBACK TRANSACTION'); + } else { + parent::rollback(); } } @@ -80,9 +80,9 @@ public function rollback() { */ public function commit() { if ($this->_pdoTransactionsSupported() === true) { - parent::commit(); - } else { $this->exec('COMMIT TRANSACTION'); + } else { + parent::commit(); } } @@ -91,9 +91,9 @@ public function commit() { */ public function beginTransaction() { if ($this->_pdoTransactionsSupported() === true) { - parent::beginTransaction(); - } else { $this->exec('BEGIN TRANSACTION'); + } else { + parent::beginTransaction(); } }