From 093d31660544fd4b5eb5f09d4bbe36c6063eca42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 25 Feb 2022 18:05:27 +0800 Subject: [PATCH] modify plugin name --- Mysql/PDO.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Mysql/PDO.php b/Mysql/PDO.php index 7c1f221..b01f15a 100644 --- a/Mysql/PDO.php +++ b/Mysql/PDO.php @@ -136,6 +136,7 @@ class PDO implements StopHeartbeatCheck */ public function beginTransaction() { + var_dump($this->_transaction); if ($this->_transaction == 0) { $this->_pdo()->beginTransaction(); } @@ -282,12 +283,9 @@ class PDO implements StopHeartbeatCheck $this->_last = time(); $pdo = $this->_pdo(); if (!(($prepare = $pdo->prepare($sql)) instanceof PDOStatement)) { - var_dump($pdo->errorInfo(), $prepare->errorInfo(), $sql); throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE); } if ($prepare->execute($params) === false) { - var_dump($pdo->errorInfo(), $prepare->errorInfo(), $sql); - throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE); } $result = (int)$pdo->lastInsertId();