Skip to content

Commit

Permalink
Update lib/adapters/postgres.js
Browse files Browse the repository at this point in the history
fix to add quotes around key so that it works for mixed-case correctly
  • Loading branch information
clarktlaugh committed Sep 30, 2012
1 parent 4510008 commit f3bafd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adapters/postgres.js
Expand Up @@ -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 += ' > ';
Expand Down

0 comments on commit f3bafd7

Please sign in to comment.