-
Notifications
You must be signed in to change notification settings - Fork 473
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
Empty slice generates NOT IN(NULL) SQL statement #99
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow up to #61
I have hit an issue with the decided upon solution for #61.
When the query is built as
WHERE id IN (NULL)
I get 0 rows as I would expect, but if the query isWHERE id NOT IN (NULL)
I also get 0 rows when I would instead expect it to find every row.So in the case where the operation is a NOT IN it would make sense to drop the condition completely.
The text was updated successfully, but these errors were encountered: