You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.
Given posts with ids [1,2,3]
When I do
Post.where(:id.not_in => [])
I expect result to be [1,2,3].
The current generated query is
SELECT
posts
.* FROMposts
WHEREposts
.id
NOT IN (NULL)Which returns [].
So, Post where id is not in empty array returns instead of all posts .. an empty array.
The text was updated successfully, but these errors were encountered: