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

model.all throws an exception for non-numeric id #15

Open
pistole opened this issue Jun 16, 2017 · 0 comments
Open

model.all throws an exception for non-numeric id #15

pistole opened this issue Jun 16, 2017 · 0 comments

Comments

@pistole
Copy link

pistole commented Jun 16, 2017

'(error) ERR One or more scores can't be converted into double' is the error redis throws.

It looks like the sort command isn't being issued with 'by alpha' like it should for a non-numeric column index.

It looks like this is the offending line: redis.js:506, which disables the non-numeric check for the id column.

Is there an underlying reason for the assumption that ids are numeric? Everything else seems to work fine without it and removing the check causes the model.all call to work normally. Nothing in the documentation calls it out as an unsupported case (at least as far as I can see).

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

No branches or pull requests

1 participant