mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-03 05:48:11 +08:00
Fixes #15194: Fixed yii\db\QueryBuilder::insert() to preserve passed params when building a INSERT INTO ... SELECT query for MSSQL, PostgreSQL and SQLite
This commit is contained in:
committed by
Alexander Makarov
parent
1453eeaa4a
commit
b7d5393a08
@ -179,7 +179,7 @@ class QueryBuilder extends \yii\base\BaseObject
|
||||
$placeholders = [];
|
||||
$values = ' DEFAULT VALUES';
|
||||
if ($columns instanceof \yii\db\Query) {
|
||||
list($names, $values, $params) = $this->prepareInsertSelectSubQuery($columns, $schema);
|
||||
list($names, $values, $params) = $this->prepareInsertSelectSubQuery($columns, $schema, $params);
|
||||
} else {
|
||||
foreach ($columns as $name => $value) {
|
||||
$names[] = $schema->quoteColumnName($name);
|
||||
|
||||
Reference in New Issue
Block a user