mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
ZSCORE fixed, now returns NULL on missing key or missing element
This commit is contained in:
parent
bbf44ecf1b
commit
96d8b4eeba
2
redis.c
2
redis.c
@ -4372,7 +4372,7 @@ static void zscoreCommand(redisClient *c) {
|
|||||||
|
|
||||||
o = lookupKeyRead(c->db,c->argv[1]);
|
o = lookupKeyRead(c->db,c->argv[1]);
|
||||||
if (o == NULL) {
|
if (o == NULL) {
|
||||||
addReply(c,shared.czero);
|
addReply(c,shared.nullbulk);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (o->type != REDIS_ZSET) {
|
if (o->type != REDIS_ZSET) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user