Fix mysql neq for NULL value.

This commit is contained in:
ulion 2015-03-08 22:52:38 +08:00
parent dc72bb8696
commit f316b8ca7d
1 changed files with 1 additions and 1 deletions

View File

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