From 983b6603a759aa01e08626d3cfcf434be90ba9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 18 Sep 2020 17:28:10 +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 d0a927b7..26bc33a5 100644 --- a/Database/Command.php +++ b/Database/Command.php @@ -205,7 +205,7 @@ class Command extends Component } } catch (\Throwable | Exception $exception) { $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql'); - $result = null; + $result = []; } finally { return $result; }