quote schema and table

This commit is contained in:
Sven Klemm
2018-03-09 18:09:59 +01:00
parent 1849e938bd
commit 340f679d0f

View File

@ -221,7 +221,7 @@ export default class PostgresQuery {
query += "," + this.quoteIdentifier(this.target.metricColumn) + " AS metric";
}
query += ' FROM ' + target.schema + '.' + target.table + ' WHERE ';
query += ' FROM ' + this.quoteIdentifier(target.schema) + '.' + this.quoteIdentifier(target.table) + ' WHERE ';
var conditions = _.map(target.where, (tag, index) => {
return this.renderTagCondition(tag, index, interpolate);
});