This commit is contained in:
xl
2023-07-10 11:23:38 +08:00
parent a4a5025e95
commit 1c07e59357
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -209,8 +209,8 @@ class Command extends Component
*/
private function error(Throwable $throwable): bool
{
error('mysql', [$throwable]);
error($this->sql . '.' . json_encode($this->params, JSON_UNESCAPED_UNICODE));
error(throwable($throwable), []);
return addError($throwable->getMessage(), 'mysql');
}
+1 -1
View File
@@ -138,7 +138,7 @@ class SqlBuilder extends Component
*/
public function delete(): string
{
return 'DELETE FROM ' . $this->query->from . ' WHERE ' . $this->_prefix();
return 'DELETE FROM ' . $this->query->from . $this->_prefix();
}