Update CHANGELOG.

This commit is contained in:
Daniele Alessandri
2010-07-11 16:24:06 +02:00
parent 208fdf6daf
commit 3077e76708
2 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ v0.6.1 (2010-xx-xx)
supported using an associative array passed as the last argument of their
respective methods.
* Added missing support for the LIMIT modifier of ZRANGEBYSCORE.
* The LIMIT modifier for ZRANGEBYSCORE can be specified using either:
- an indexed array: array($offset, $count)
- an associative array: array('limit' => $limit, 'count' => $count)
* The method Predis\Client::__construct() now accepts also instances of
Predis\ConnectionParameters.
+3 -2
View File
@@ -2617,9 +2617,10 @@ class ZSetRangeByScore extends \Predis\Commands\ZSetRange {
$opts = array_change_key_case($options, CASE_UPPER);
$finalizedOpts = array();
if (isset($opts['LIMIT']) && is_array($opts['LIMIT'])) {
$limit = array_change_key_case($opts['LIMIT'], CASE_UPPER);
$finalizedOpts[] = 'LIMIT';
$finalizedOpts[] = $opts['LIMIT'][0];
$finalizedOpts[] = $opts['LIMIT'][1];
$finalizedOpts[] = isset($limit['OFFSET']) ? $limit['OFFSET'] : $limit[0];
$finalizedOpts[] = isset($limit['COUNT']) ? $limit['COUNT'] : $limit[1];
}
return array_merge($finalizedOpts, parent::prepareOptions($options));
}