-
Notifications
You must be signed in to change notification settings - Fork 90
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
null values get dropped from results #75
Comments
I don't think I have done a good job explaining. In order to get page two of the results, I get this query:
This is incorrectly returning 0 results, when it should return 1 result - an entry that has Apparently under postgres, NULL values get sorted last. But do not match |
I think you refer to this issue: To solve this simply add another field like [:description, :id] |
Andrea, thanks for that explanation. @brianmay, does that resolve your query? |
In the above case, the fields used where |
I have just submitted a PR that potentially fix this issue 🤞🏽 |
The SQL queries generated will silently drop null values, e.g:
sort_order = ''
andsort_order > ''
will both exclude null values. So I guess this should currently only be used on not-nullable columns.At least for string values. My guess is that other types will be affected as well.
The text was updated successfully, but these errors were encountered: