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

This commit is contained in:
Anatoliy Chakkaev 2012-10-01 12:21:37 +04:00
commit bf20e000dd
1 changed files with 1 additions and 1 deletions

View File

@ -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 += ' > ';