Merge pull request #78 from robscott/patch-1
Fixes mysql adapter 'neq' condition.
This commit is contained in:
commit
9a5c252428
|
@ -261,7 +261,7 @@ MySQL.prototype.all = function all(model, filter, callback) {
|
||||||
sqlCond += ' NOT IN ';
|
sqlCond += ' NOT IN ';
|
||||||
break;
|
break;
|
||||||
case 'neq':
|
case 'neq':
|
||||||
sqlCond + ' != ';
|
sqlCond += ' != ';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sqlCond += (condType == 'inq' || condType == 'nin') ? '(' + val + ')' : val;
|
sqlCond += (condType == 'inq' || condType == 'nin') ? '(' + val + ')' : val;
|
||||||
|
|
Loading…
Reference in New Issue