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

BITPOS should allow to just specify start. #623

Closed
christophstrobl opened this issue Oct 9, 2017 · 1 comment
Closed

BITPOS should allow to just specify start. #623

christophstrobl opened this issue Oct 9, 2017 · 1 comment
Labels
type: bug A general bug
Milestone

Comments

@christophstrobl
Copy link
Contributor

christophstrobl commented Oct 9, 2017

Both start and end are optional, still it should be possible to use BITPOS with start only.

it is possible to just pass start, the operation will assume that the end is the last byte of the string

redis> SET mykey "\x00\xff\xf0"
"OK"
redis> BITPOS mykey 1 0
(integer) 8
redis> BITPOS mykey 1 2
(integer) 16
@mp911de
Copy link
Collaborator

mp911de commented Oct 10, 2017

That's fixed now.

@mp911de mp911de closed this as completed Oct 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants