Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
3a3978b1
Commit
3a3978b1
authored
Feb 07, 2010
by
antirez
Browse files
WITHSCORES in ZRANGEBYSCORE thanks to Sam Hendley
parent
0500ef27
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
3a3978b1
...
@@ -5201,14 +5201,14 @@ static void zrangebyscoreCommand(redisClient *c) {
...
@@ -5201,14 +5201,14 @@ static void zrangebyscoreCommand(redisClient *c) {
int
badsyntax
=
0
;
int
badsyntax
=
0
;
if
(
c
->
argc
==
5
||
c
->
argc
==
8
)
{
if
(
c
->
argc
==
5
||
c
->
argc
==
8
)
{
if
(
strcasecmp
(
c
->
argv
[
c
->
argc
-
1
]
->
ptr
,
"withscores"
)
==
0
)
withscores
=
1
;
if
(
strcasecmp
(
c
->
argv
[
c
->
argc
-
1
]
->
ptr
,
"withscores"
)
==
0
)
else
badsyntax
=
1
;
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
;
badsyntax
=
1
;
}
if
(
badsyntax
)
{
if
(
badsyntax
)
{
addReplySds
(
c
,
addReplySds
(
c
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment