binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.4k stars 133 forks source link

2.4.31 breaks "in" queries when one of the param is nil/null #142

Closed nikhilgupte closed 13 years ago

nikhilgupte commented 13 years ago

In 2.4.30, Foo.field1_in('a', 'b', nil) generated a bunch of OR clauses which handled the NULL check 2.4.31 generates an IN clause like field1 IN ('a', 'b', NULL). This does not work in PostgreSQL.

ghost commented 13 years ago

This has been fixed, update to the latest version. Thanks.