From 5f0514a37ce52bbaeb4565ee798681499911625f Mon Sep 17 00:00:00 2001 From: Rob Scott Date: Fri, 4 May 2012 15:19:59 -0300 Subject: [PATCH] Fixes mysql adapter 'neq' condition. --- lib/adapters/mysql.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/adapters/mysql.js b/lib/adapters/mysql.js index 14766aab..c78d9428 100644 --- a/lib/adapters/mysql.js +++ b/lib/adapters/mysql.js @@ -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;