We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
BITCOUNT
unstable
127.0.0.1:6666> SET mykey "foobar" OK 127.0.0.1:6666> BITCOUNT mykey 5 30 (integer) 4 127.0.0.1:6666> BITCOUNT mykey 5 30 111 (integer) 26
BITCOUNT mykey 5 30 111 return 4
BITCOUNT mykey 5 30 111
BITCOUNT mykey 5 30 111 return ERROR
kvrocks/src/commands/cmd_bit.cc
Lines 94 to 117 in 574d438
We need return ERROR when args.size() > 4
args.size() > 4
The text was updated successfully, but these errors were encountered:
Below is how Redis works:
127.0.0.1:6379> SET mykey "foobar" OK 127.0.0.1:6379> BITCOUNT mykey 5 30 (integer) 4 127.0.0.1:6379> BITCOUNT mykey 5 30 111 (error) ERR syntax error
@jihuayu would you like to fix it? Or I can take a look.
Sorry, something went wrong.
@tisonkun Go ahead. Thank you! I will not fix it
Successfully merging a pull request may close this issue.
Search before asking
Version
unstable
Minimal reproduce step
What did you expect to see?
BITCOUNT mykey 5 30 111
return 4What did you see instead?
BITCOUNT mykey 5 30 111
return ERRORAnything Else?
kvrocks/src/commands/cmd_bit.cc
Lines 94 to 117 in 574d438
We need return ERROR when
args.size() > 4
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: