From 28c7acc469f40aa2c6dfbcd4ef4e1e2e9068479a Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Tue, 24 Sep 2013 19:33:00 +0200 Subject: [PATCH] fixed BETWEEN comparision to match >= and <= --- framework/yii/redis/LuaScriptBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/redis/LuaScriptBuilder.php b/framework/yii/redis/LuaScriptBuilder.php index 9191a4f..c850002 100644 --- a/framework/yii/redis/LuaScriptBuilder.php +++ b/framework/yii/redis/LuaScriptBuilder.php @@ -286,7 +286,7 @@ EOF; $value1 = $this->quoteValue($value1); $value2 = $this->quoteValue($value2); $column = $this->addColumn($column, $columns); - return "$column > $value1 and $column < $value2"; + return "$column >= $value1 and $column <= $value2"; } private function buildInCondition($operator, $operands, &$columns)