mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
quote column name in buildValueQuery
This commit is contained in:
parent
731c7520b3
commit
b12d049f6f
@ -39,7 +39,7 @@ export class PostgresQueryBuilder {
|
||||
}
|
||||
|
||||
buildValueQuery(column: string) {
|
||||
var query = "SELECT DISTINCT quote_literal(" + column + ")";
|
||||
var query = "SELECT DISTINCT quote_literal(" + this.queryModel.quoteIdentifier(column) + ")";
|
||||
query += " FROM " + this.queryModel.quoteIdentifier(this.target.schema);
|
||||
query += "." + this.queryModel.quoteIdentifier(this.target.table);
|
||||
query += " ORDER BY 1 LIMIT 100";
|
||||
|
Loading…
Reference in New Issue
Block a user