Open mikemorreale opened 10 years ago
The following code gives an error for trying to do an empty NOT IN (), which is invalid SQL.
var list = []; User.find().where({id: {not: list}}).exec(function (err, users) { });
I added a small fix to use WHERE TRUE instead when this occurs.
@mikemorreale Thank you- we're working on setting up a basic test suite for this module-- would you be interested in getting involved?
Sure, I'd be happy to help out.
The following code gives an error for trying to do an empty NOT IN (), which is invalid SQL.
I added a small fix to use WHERE TRUE instead when this occurs.