invalid queries being generated in tests#63

Labels

Milestone

Assignee

2 participants

After updating today to gem v. 0.2.1, we're getting a number of failures in our test suite, all around SELECT/DELETE IN queries where an empty array is passed in, e.g.:

Campaign.where(:entity_id => [])

generates SELECT "campaigns".* FROM "campaigns" WHERE "campaigns"."entity_id" IN (), which is a syntax error. This only occurs in our test suite as far as we can tell. When running within a rails console, the generated query is SELECT "campaigns".* FROM "campaigns" WHERE "campaigns"."entity_id" IN (NULL), which is expected.

Removing the postgres_ext gem from the bundle resolves this issue completely, with no other changes.