From f941bfee600b52dbc47d5d0755879039db4c8960 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 27 Aug 2013 08:09:15 -0400 Subject: [PATCH] Fixes #820. --- framework/yii/db/QueryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/db/QueryBuilder.php b/framework/yii/db/QueryBuilder.php index 5317e67..b55be3c 100644 --- a/framework/yii/db/QueryBuilder.php +++ b/framework/yii/db/QueryBuilder.php @@ -851,8 +851,8 @@ class QueryBuilder extends \yii\base\Object $column = $this->db->quoteColumnName($column); } $phName1 = self::PARAM_PREFIX . count($params); - $phName2 = self::PARAM_PREFIX . count($params); $params[$phName1] = $value1; + $phName2 = self::PARAM_PREFIX . count($params); $params[$phName2] = $value2; return "$column $operator $phName1 AND $phName2";