From ee44cfbca948fc12e736d9fc8eef3f37144927b9 Mon Sep 17 00:00:00 2001 From: Administrator Date: Wed, 10 Nov 2021 02:36:49 +0800 Subject: [PATCH] 1 --- src/Command.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command.php b/src/Command.php index 6ae9368..e511d83 100644 --- a/src/Command.php +++ b/src/Command.php @@ -168,7 +168,7 @@ class Command extends Component { $pdo = $this->db->getConnect($this->sql); $result = $pdo->execute($this->sql, $isInsert, $this->params); - if (is_null($hasAutoIncrement) && $result == 0) { + if (!is_null($hasAutoIncrement) && $result == 0) { return false; } return $result;