This commit is contained in:
as2252258@163.com
2021-07-03 16:17:37 +08:00
parent 42db5c83dc
commit 2c37c5c494
+1
View File
@@ -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);
}