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); }