modify
This commit is contained in:
@@ -273,6 +273,7 @@ class Connection extends Component
|
|||||||
// 'TRUNCA' => preg_replace('/TRUNCATE\s+(\w+)\s+/', 'TRUNCATE `' . $dbname . '`.$1', $sql),
|
// 'TRUNCA' => preg_replace('/TRUNCATE\s+(\w+)\s+/', 'TRUNCATE `' . $dbname . '`.$1', $sql),
|
||||||
// default => throw new Exception('database error')
|
// default => throw new Exception('database error')
|
||||||
// };
|
// };
|
||||||
|
|
||||||
$command = new Command(['db' => $this, 'sql' => $sql]);
|
$command = new Command(['db' => $this, 'sql' => $sql]);
|
||||||
return $command->bindValues($attributes);
|
return $command->bindValues($attributes);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user