Skip to content

Commit

Permalink
implement spec PDO::rollback like php 7
Browse files Browse the repository at this point in the history
  • Loading branch information
hungtrinh committed Aug 13, 2023
1 parent bd9707f commit da7125f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions library/Zend/Db/Adapter/Pdo/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ protected function _commit()
*/
protected function _rollBack() {
$this->_connect();
if ( $this->_isBringBackTransLikePhp7() && !$this->_connection->inTransaction() ) {
return;
}
$this->_connection->rollBack();
}

Expand Down

0 comments on commit da7125f

Please sign in to comment.