redict/tests/unit/type
Binbin d9c2ef8a72
zrangeGenericCommand add check for negative offset (#9052)
Now we will check the offset in zrangeGenericCommand.
With a negative offset, we will throw an error and return.

This also resolve the issue of zeroing the destination key
in case of the "store" variant when we input a negative offset.
```
127.0.0.1:6379> set key value
OK
127.0.0.1:6379> zrangestore key myzset 0 10 byscore limit -1 10
(integer) 0
127.0.0.1:6379> exists key
(integer) 0
```

This change affects the following commands:
- ZRANGE / ZRANGESTORE / ZRANGEBYLEX / ZRANGEBYSCORE
- ZREVRANGE / ZREVRANGEBYSCORE / ZREVRANGEBYLEX
2023-06-20 14:33:17 +03:00
..
hash.tcl Adding test case for hvals, hkeys, hexists against wrong type (#12198) 2023-05-24 09:34:13 +03:00
incr.tcl add test cases for decr decrby on missing key (#12070) 2023-04-19 09:55:56 +03:00
list-2.tcl Minor improvements for list-2 test (#8156) 2020-12-08 16:26:38 +02:00
list-3.tcl Fix quicklist node not being recompressed correctly after inserting a new node before or after it (#10120) 2022-01-16 08:54:40 +02:00
list-common.tcl Add listpack encoding for list (#11303) 2022-11-16 20:29:46 +02:00
list.tcl Add command being unblocked cause another command to get unblocked execution order test (#12324) 2023-06-16 15:39:00 +03:00
set.tcl Use Reservoir Sampling for random sampling of dict, and fix hang during fork (#12276) 2023-06-16 19:13:07 +03:00
stream-cgroups.tcl Fix XREADGROUP BLOCK stuck in endless loop (#12301) 2023-06-13 13:27:05 +03:00
stream.tcl Fix XSETID with max_deleted_entry_id issue (#11444) 2022-11-02 16:16:16 +02:00
string.tcl Optimize MSETNX to avoid double lookup (#11944) 2023-05-28 10:58:29 +03:00
zset.tcl zrangeGenericCommand add check for negative offset (#9052) 2023-06-20 14:33:17 +03:00