diff --git a/lib/adapters/postgres.js b/lib/adapters/postgres.js index 8ff35e90..cc0caf7d 100644 --- a/lib/adapters/postgres.js +++ b/lib/adapters/postgres.js @@ -237,7 +237,7 @@ PG.prototype.toFilter = function (model, filter) { fields.push('"' + key + '" IS ' + filterValue); } else if (conds[key].constructor.name === 'Object') { var condType = Object.keys(conds[key])[0]; - var sqlCond = key; + var sqlCond = '"' + key + '"'; switch (condType) { case 'gt': sqlCond += ' > ';