变更
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user