remove dead code from sql_part

fix where clause query generation
This commit is contained in:
Sven Klemm
2018-07-04 15:37:06 +02:00
parent 3b632510fb
commit 7d30ca04de
2 changed files with 12 additions and 26 deletions

View File

@ -56,6 +56,9 @@ export default class PostgresQuery {
this.target.where = _.map(this.whereParts, function(part: any) {
return { type: part.def.type, params: part.params };
});
this.target.groupBy = _.map(this.groupByParts, function(part: any) {
return { type: part.def.type, params: part.params };
});
}
hasGroupByTime() {
@ -197,7 +200,7 @@ export default class PostgresQuery {
});
if (conditions.length > 0) {
query += '(' + conditions.join(' ') + ') AND ';
query += '(' + conditions.join(' AND ') + ') AND ';
}
query += '$__timeFilter(' + this.quoteIdentifier(target.timeColumn) + ')';