Skip to content

Wrong minArgs and maxArgs values for SELECT redis command [DATAREDIS-1013] #1585

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

Closed
spring-projects-issues opened this issue Jul 11, 2019 · 2 comments
Assignees
Labels
in: core Issues in core support type: bug A general bug

Comments

@spring-projects-issues
Copy link

svolle opened DATAREDIS-1013 and commented

The RedisCommand class specifies SELECT command arguments validations as such:

SELECT(mode:"rw", minArgs:0, maxArgs:0), //

but in my understanding,  minArgs and maxArgs value really should be 1 (the database index we want to select).

As such, it is impossible to issue a SELECT command in transactional mode as the validation of the command will always fail


Affects: 2.1.9 (Lovelace SR9)

Referenced from: pull request #468

Backported to: 2.1.10 (Lovelace SR10)

@spring-projects-issues
Copy link
Author

Mark Paluch commented

Good catch. Do you want to submit a pull request to fix the issue?

@spring-projects-issues
Copy link
Author

svolle commented

Hello Mark Paluch. I created the following pull request for the issue: 

#468

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core support type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants