Fix mysql neq for NULL value.
This commit is contained in:
parent
dc72bb8696
commit
f316b8ca7d
|
@ -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 ';
|
||||
|
|
Loading…
Reference in New Issue