From ae166c26c8a2add190ecb229f0690d77b4c54164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 28 Apr 2021 10:50:44 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Database/Command.php b/Database/Command.php index 9e2da07c..f27ea361 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -171,10 +171,10 @@ class Command extends Component /** * @param $isInsert * @param $hasAutoIncrement - * @return bool|string + * @return bool|string|int * @throws Exception */ - private function insert_or_change($isInsert, $hasAutoIncrement): bool|string + private function insert_or_change($isInsert, $hasAutoIncrement): bool|string|int { if (!($result = $this->initPDOStatement())) { return $result;