From eff6ae0e95ab116e66b7b7e7ba1d526e3e2f62b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 25 Feb 2022 18:06:04 +0800 Subject: [PATCH] modify plugin name --- Mysql/PDO.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mysql/PDO.php b/Mysql/PDO.php index ea3e8a2..106d4b9 100644 --- a/Mysql/PDO.php +++ b/Mysql/PDO.php @@ -150,10 +150,10 @@ class PDO implements StopHeartbeatCheck public function commit() { var_dump($this->_transaction); + $this->_transaction--; if ($this->_transaction == 0) { $this->_pdo()->commit(); } - $this->_transaction--; } @@ -163,10 +163,10 @@ class PDO implements StopHeartbeatCheck public function rollback() { var_dump($this->_transaction); + $this->_transaction--; if ($this->_transaction == 0) { $this->_pdo()->rollBack(); } - $this->_transaction--; }