Merge branch 'master' of github.com:1602/jugglingdb
This commit is contained in:
commit
ae193c9064
|
@ -238,6 +238,10 @@ MySQL.prototype.all = function all(model, filter, callback) {
|
|||
} else if (conds[key].constructor.name === 'Object') {
|
||||
var condType = Object.keys(conds[key])[0];
|
||||
var sqlCond = keyEscaped;
|
||||
if ((condType == 'inq' || condType == 'nin') && val.length == 0) {
|
||||
cs.push(condType == 'inq' ? 0 : 1);
|
||||
return true;
|
||||
}
|
||||
switch (condType) {
|
||||
case 'gt':
|
||||
sqlCond += ' > ';
|
||||
|
|
Loading…
Reference in New Issue