From 2c37c5c494d2fdcc31e9fc7fe0001512243460ef Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 3 Jul 2021 16:17:37 +0800 Subject: [PATCH] modify --- Database/Connection.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Database/Connection.php b/Database/Connection.php index 72d4e807..e97ce1a7 100644 --- a/Database/Connection.php +++ b/Database/Connection.php @@ -273,6 +273,7 @@ class Connection extends Component // 'TRUNCA' => preg_replace('/TRUNCATE\s+(\w+)\s+/', 'TRUNCATE `' . $dbname . '`.$1', $sql), // default => throw new Exception('database error') // }; + $command = new Command(['db' => $this, 'sql' => $sql]); return $command->bindValues($attributes); }