This commit is contained in:
2020-09-11 17:59:38 +08:00
parent 45aaf011f9
commit 4dc451fe7a
2 changed files with 2 additions and 5 deletions
+1 -4
View File
@@ -250,10 +250,7 @@ class Connection extends Component
*/
public function createCommand($sql = null, $attributes = [])
{
$command = new Command([
'db' => $this
]);
$command->setSql($sql);
$command = new Command(['db' => $this, 'sql' => $sql]);
return $command->bindValues($attributes);
}