Merge pull request #81 from ulion/fix_neq_null

Fix neq null
This commit is contained in:
Raymond Feng 2015-03-08 10:08:23 -07:00
commit ddb4f58c30
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ MySQL.prototype._buildWhere = function (model, conds) {
sqlCond += ' NOT IN '; sqlCond += ' NOT IN ';
break; break;
case 'neq': case 'neq':
sqlCond += ' != '; sqlCond += val === 'NULL' ? ' IS NOT ' : ' != ';
break; break;
case 'like': case 'like':
sqlCond += ' LIKE '; sqlCond += ' LIKE ';