Skip to content

Commit

Permalink
added error logging to BasePDO::{commit,rollBack}
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Dec 7, 2023
1 parent 1d206b6 commit 9746fff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/DBO.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ public function commit() {
// restore pre-PHP 8 semantics after implicit commit
// see https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.pdo-mysql
return $this->delegate->inTransaction() ?
$this->delegate->commit() : true;
$this->__call("commit", []) : true;
}

public function rollBack() {
// restore pre-PHP 8 semantics after implicit commit
// see https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.pdo-mysql
return $this->delegate->inTransaction() ?
$this->delegate->rollBack() : true;
$this->__call("rollBack", []) : true;
}

public function prepare($stmt, $options = []) {
Expand Down

0 comments on commit 9746fff

Please sign in to comment.