quote column name in buildValueQuery

This commit is contained in:
Sven Klemm 2018-05-19 17:21:53 +02:00
parent 731c7520b3
commit b12d049f6f

View File

@ -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";