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

LPOS command sends FIRST instead of RANK #1410

Closed
christophstrobl opened this issue Sep 15, 2020 · 1 comment
Closed

LPOS command sends FIRST instead of RANK #1410

christophstrobl opened this issue Sep 15, 2020 · 1 comment
Labels
type: bug A general bug
Milestone

Comments

@christophstrobl
Copy link
Contributor

LPosArgs uses FIRST instead of RANK causing a syntax error

"RPUSH" "mylist" "a" "b" "c" "1" "2" "3" "c" "c"
"LPOS" "mylist" "c" "COUNT" "2" "FIRST" "-1"
> ERR syntax error
"LPOS" "mylist" "c" "COUNT" "2" "RANK" "-1"
> [7,6]

Please rename LPosArgs.first to LPosArgs.rank and send the RANK option if present.

Commit redis/redis@a5a3a7b changed the option name.

@christophstrobl christophstrobl added the type: bug A general bug label Sep 15, 2020
@mp911de mp911de added this to the 5.3.4 milestone Sep 15, 2020
mp911de added a commit that referenced this issue Sep 15, 2020
The FIRST option was renamed in Redis so we're following now.
@mp911de
Copy link
Collaborator

mp911de commented Sep 15, 2020

That's fixed now.

@mp911de mp911de closed this as completed Sep 15, 2020
mp911de added a commit that referenced this issue Sep 15, 2020
The FIRST option was renamed in Redis so we're following now.
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