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)