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
User.where(id: Set.new([1,2])).to_sql=>"SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" = NULL"User.where(id: [1,2]).to_sql=>"SELECT \"users\".* FROM \"users\" WHERE \"users\".\"id\" IN (1, 2)"
The text was updated successfully, but these errors were encountered:
mr-dxdy
changed the title
ORM creates invalid sql-query if ids is kind of Set
ORM creates wrong sql-query if ids is kind of Set
Sep 22, 2017
Hi!
Rails: 4.2.7
Ruby: 2.2.4
The text was updated successfully, but these errors were encountered: