Add truthy rawQuery as we are interpolating raw query only (#25110)

This commit is contained in:
Ivana Huckova 2020-05-28 14:28:56 +02:00 committed by GitHub
parent 328ea80cca
commit 9be7d5867f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@ export class MssqlDatasource {
...query, ...query,
datasource: this.name, datasource: this.name,
rawSql: this.templateSrv.replace(query.rawSql, scopedVars, this.interpolateVariable), rawSql: this.templateSrv.replace(query.rawSql, scopedVars, this.interpolateVariable),
rawQuery: true,
}; };
return expandedQuery; return expandedQuery;
}); });

View File

@ -56,6 +56,7 @@ export class MysqlDatasource {
...query, ...query,
datasource: this.name, datasource: this.name,
rawSql: this.templateSrv.replace(query.rawSql, scopedVars, this.interpolateVariable), rawSql: this.templateSrv.replace(query.rawSql, scopedVars, this.interpolateVariable),
rawQuery: true,
}; };
return expandedQuery; return expandedQuery;
}); });

View File

@ -61,6 +61,7 @@ export class PostgresDatasource {
...query, ...query,
datasource: this.name, datasource: this.name,
rawSql: this.templateSrv.replace(query.rawSql, scopedVars, this.interpolateVariable), rawSql: this.templateSrv.replace(query.rawSql, scopedVars, this.interpolateVariable),
rawQuery: true,
}; };
return expandedQuery; return expandedQuery;
}); });