This commit is contained in:
2023-04-06 22:19:45 +08:00
parent a8924c270b
commit 919ed98422
2 changed files with 24 additions and 23 deletions
+1 -1
View File
@@ -248,7 +248,7 @@ class Connection extends Component
*/
public function createCommand($sql = null, array $attributes = []): Command
{
$command = new Command(['db' => $this, 'sql' => $sql]);
$command = new Command(['db' => $this, 'pdo' => $this->getMasterClient(), 'sql' => $sql]);
return $command->bindValues($attributes);
}