qqq
This commit is contained in:
+2
-2
@@ -209,9 +209,9 @@ class Command extends Component
|
||||
*/
|
||||
private function error(Throwable $throwable): bool
|
||||
{
|
||||
error('mysql', [$throwable]);
|
||||
error($this->sql . '.' . json_encode($this->params, JSON_UNESCAPED_UNICODE));
|
||||
return addError($throwable->getMessage(), 'mysql');
|
||||
error(throwable($throwable), []);
|
||||
return addError($throwable->getMessage(), 'mysql');
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user