Merge pull request #78 from robscott/patch-1

Fixes mysql adapter 'neq' condition.
This commit is contained in:
Anatoliy Chakkaev 2012-05-05 04:25:41 -07:00
commit 9a5c252428
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ MySQL.prototype.all = function all(model, filter, callback) {
sqlCond += ' NOT IN ';
break;
case 'neq':
sqlCond + ' != ';
sqlCond += ' != ';
break;
}
sqlCond += (condType == 'inq' || condType == 'nin') ? '(' + val + ')' : val;