From c3dbaa882878a02379fad1fa1590ab685ab86624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 10 Nov 2021 11:16:13 +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, 3 insertions(+) diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index f80e59b..54c1315 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -257,6 +257,9 @@ 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;