Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix zrangebyscore bug #9

Merged
merged 1 commit into from
Feb 16, 2022
Merged

fix zrangebyscore bug #9

merged 1 commit into from
Feb 16, 2022

Conversation

mytrygithub
Copy link
Collaborator

@mytrygithub mytrygithub commented Feb 11, 2022

fix zrangebyscore score -inf and +inf bug
note:merge blackwidow

@mytrygithub
Copy link
Collaborator Author

mytrygithub commented Feb 11, 2022

check:

host>zadd mzset -inf a -inf b -1 c 2 d 3 e +inf f +inf g
(integer) 7
host>zrevrangebyscore mzset inf -inf WITHSCORES
 1) "g"
 2) "inf"
 3) "f"
 4) "inf"
 5) "e"
 6) "3"
 7) "d"
 8) "2"
 9) "c"
10) "-1"
11) "b"
12) "-inf"
13) "a"
14) "-inf"
host> zrangebyscore mzset -inf +inf WITHSCORES
 1) "a"
 2) "-inf"
 3) "b"
 4) "-inf"
 5) "c"
 6) "-1"
 7) "d"
 8) "2"
 9) "e"
10) "3"
11) "f"
12) "inf"
13) "g"
14) "inf"
host> 

@rockeet rockeet merged commit d0b7eb6 into topling-spec Feb 16, 2022
@rockeet
Copy link
Collaborator

rockeet commented Feb 16, 2022

This PR fixed issue #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants