mirror of
https://github.com/grafana/grafana.git
synced 2025-08-26 12:40:56 +08:00
quote column name in buildValueQuery
This commit is contained in:
@ -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";
|
||||
|
Reference in New Issue
Block a user