From d887b4bbfc2710172967e5a79dc852cb2faf9916 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 23 Feb 2021 17:57:54 +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 --- Database/Command.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Database/Command.php b/Database/Command.php index 1407796d..4f7ebaa1 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -246,9 +246,10 @@ class Command extends Component return false; } if (($result = $this->prepare->execute($this->params)) === false) { + var_dump($result); return $this->addError($connection->errorInfo()[2], 'mysql'); } - if (!$isInsert) { + if ($isInsert === false) { return true; } $result = $connection->lastInsertId();