mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
quote schema and table
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user