-
Bug
-
Resolution: Done
-
Major
-
None
-
None
SMOVE does not detect WRONGTYPE operation when trying to move from set to a string value until the value is member of the set. (Which suggest that it first attempts to the value and only then checks whether the operation is permitted but it should be other way around)
127.0.0.1:11222> SET x 10 OK 127.0.0.1:11222> sadd myset 2 3 4 (integer) 3 127.0.0.1:11222> smove myset x foo (integer) 0 127.0.0.1:11222> sadd myset foo (integer) 1 127.0.0.1:11222> smove myset x foo (error) WRONGTYPE Operation against a key holding the wrong kind of value
- clones
-
JDG-7245 [RESP] SMOVE doesn't detect WRONGTYPE when member isn't present
- Verified