From 4dd3c3607ce1588b9dd82c743e53df59491bb2ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 20 May 2021 15:56: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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/Command.php b/Database/Command.php index 06d20009..16f582e6 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -171,7 +171,7 @@ class Command extends Component if (($result = $this->getPdoStatement()) === false) { return $result; } - if ($isInsert === false) { + if ($isInsert === false || !$hasAutoIncrement) { return true; } if ($result == 0 && $hasAutoIncrement->isAutoIncrement()) {