set rawSQL when rendering query builder query

This commit is contained in:
Sven Klemm
2018-03-04 19:46:11 +01:00
parent 26e09b598c
commit bf4a30d30f
2 changed files with 1 additions and 5 deletions

View File

@ -247,6 +247,7 @@ export default class PostgresQuery {
query += ' ORDER BY 1';
this.target.rawSql = query;
if (interpolate) {
query = this.templateSrv.replace(query, this.scopedVars, this.interpolateQueryStr);
}