From a1671692073fd9cf6425444dee720ff383d33d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 10 Nov 2021 11:22:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Mysql/PDO.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index b924a2b..c4b76ec 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -250,12 +250,11 @@ class PDO implements StopHeartbeatCheck { $this->_last = time(); $pdo = $this->_pdo(); + var_dump($sql, $params); if (!(($prepare = $pdo->prepare($sql)) instanceof PDOStatement)) { - var_dump($prepare->errorInfo()); throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE); } if ($prepare->execute($params) === false) { - var_dump($prepare->errorInfo()); throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE); } $result = (int)$pdo->lastInsertId();