Browse Source

Fixes #820.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
f941bfee60
  1. 2
      framework/yii/db/QueryBuilder.php

2
framework/yii/db/QueryBuilder.php

@ -851,8 +851,8 @@ class QueryBuilder extends \yii\base\Object
$column = $this->db->quoteColumnName($column); $column = $this->db->quoteColumnName($column);
} }
$phName1 = self::PARAM_PREFIX . count($params); $phName1 = self::PARAM_PREFIX . count($params);
$phName2 = self::PARAM_PREFIX . count($params);
$params[$phName1] = $value1; $params[$phName1] = $value1;
$phName2 = self::PARAM_PREFIX . count($params);
$params[$phName2] = $value2; $params[$phName2] = $value2;
return "$column $operator $phName1 AND $phName2"; return "$column $operator $phName1 AND $phName2";

Loading…
Cancel
Save