Browse Source

fixed BETWEEN comparision to match >= and <=

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
28c7acc469
  1. 2
      framework/yii/redis/LuaScriptBuilder.php

2
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)

Loading…
Cancel
Save