From 9746fff7387c2299a6af9d14dc342160ea297428 Mon Sep 17 00:00:00 2001 From: Jim Mason Date: Thu, 7 Dec 2023 19:55:10 +0000 Subject: [PATCH] added error logging to BasePDO::{commit,rollBack} --- engine/DBO.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/DBO.php b/engine/DBO.php index a1b9a167..04882fe0 100644 --- a/engine/DBO.php +++ b/engine/DBO.php @@ -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 = []) {