提交 3a3978b1 编写于 作者: A antirez

WITHSCORES in ZRANGEBYSCORE thanks to Sam Hendley

上级 0500ef27
......@@ -5201,14 +5201,14 @@ static void zrangebyscoreCommand(redisClient *c) {
int badsyntax = 0;
if (c->argc == 5 || c->argc == 8) {
if (strcasecmp(c->argv[c->argc-1]->ptr,"withscores") == 0) withscores = 1;
else badsyntax = 1;
if (strcasecmp(c->argv[c->argc-1]->ptr,"withscores") == 0)
withscores = 1;
else
badsyntax = 1;
}
if (c->argc != (4 + withscores) && c->argc != (7 + withscores)) {
if (c->argc != (4 + withscores) && c->argc != (7 + withscores))
badsyntax = 1;
}
if (badsyntax) {
addReplySds(c,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册