vidigami / backbone-sql

PostgreSQL, MySQL, and SQLite3 storage for BackboneORM
http://vidigami.github.io/backbone-orm/backbone-sql.html
MIT License
14 stars 8 forks source link

Invalid sql generated when using `{$in: []}` on a related field #15

Open forivall opened 10 years ago

forivall commented 10 years ago

Using the model types in the tests

Owner.cursor({'reverses.id': {$in: []}}).include('reverses').toModels (err, owners) ->
    ...

will cause the error error: syntax error at or near ")"

tgriesser commented 10 years ago

I think this might be fixed with knex 7.x just fyi.