Fixes mysql adapter 'neq' condition.

This commit is contained in:
Rob Scott 2012-05-04 15:19:59 -03:00
parent 2b67400525
commit 5f0514a37c
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 '; 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;