This commit is contained in:
2020-09-18 17:28:10 +08:00
parent 7f7bbcb80b
commit 983b6603a7
+1 -1
View File
@@ -205,7 +205,7 @@ class Command extends Component
} }
} catch (\Throwable | Exception $exception) { } catch (\Throwable | Exception $exception) {
$this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql'); $this->addError($this->sql . '. error: ' . $exception->getMessage(), 'mysql');
$result = null; $result = [];
} finally { } finally {
return $result; return $result;
} }