From a113d5f64b5154cd1a8c98451fdfbf7cd2bf5c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 10 Nov 2021 11:18:12 +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/Command.php | 1 + src/Mysql/PDO.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Command.php b/src/Command.php index e581903..21bdcd0 100644 --- a/src/Command.php +++ b/src/Command.php @@ -129,6 +129,7 @@ class Command extends Component } catch (\Throwable $exception) { $result = $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql'); } finally { + var_dump($result); $this->db->release(); return $result; } diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index 54c1315..f80e59b 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -257,9 +257,6 @@ class PDO implements StopHeartbeatCheck throw new Exception($prepare->errorInfo()[2] ?? static::DB_ERROR_MESSAGE); } $result = (int)$pdo->lastInsertId(); - - var_dump($result); - $prepare->closeCursor(); if ($result == 0) { return true;