From 3e68828fc61a90aeedf981448b4be1bdb279660c Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Wed, 28 Apr 2021 00:19:53 +0800 Subject: [PATCH] modify --- Database/Command.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Database/Command.php b/Database/Command.php index a6a483ae..9e2da07c 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -122,9 +122,9 @@ class Command extends Component */ private function execute($type, $isInsert = null, $hasAutoIncrement = null): int|bool|array|string|null { - $time = microtime(true); try { - if ($type === static::EXECUTE) { + $time = microtime(true); + if ($type === static::EXECUTE) { $result = $this->insert_or_change($isInsert, $hasAutoIncrement); } else { $result = $this->search($type);