Commit 7f4c2823 by Qiang Xue

Fixes #2826

parent af030c5f
......@@ -20,9 +20,13 @@ class QueryBuilder extends \yii\db\QueryBuilder
private $sql;
public function build($query)
/**
* @inheritdoc
*/
public function build($query, $params = [])
{
$params = $query->params;
$params = empty($params) ? $query->params : array_merge($params, $query->params);
$clauses = [
$this->buildSelect($query->select, $params, $query->distinct, $query->selectOption),
$this->buildFrom($query->from, $params),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment