Permalink
Browse files

Merge branch 'master' of github.com:1602/jugglingdb

  • Loading branch information...
2 parents ef93cdd + d54cf8f commit bf20e000dd6dcc8e7828dec275a680f630ea4c67 @1602 committed Oct 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/adapters/postgres.js
View
@@ -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 bf20e00

Please sign in to comment.