Skip to content
Browse files

Merge pull request #127 from clarktlaugh/master

add quotes around key to allow mixed-case to work correctly
  • Loading branch information...
2 parents 4510008 + f3bafd7 commit d54cf8f0c197f65bb501d66bd04a26a303d8ba70 @1602 committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adapters/postgres.js
View
2 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 += ' > ';

0 comments on commit d54cf8f

Please sign in to comment.
Something went wrong with that request. Please try again.