put values for IN in parens

This commit is contained in:
Sven Klemm
2018-03-13 23:19:56 +01:00
parent 958646d976
commit 5e9a66de5f

View File

@ -137,7 +137,11 @@ export default class PostgresQuery {
value = this.templateSrv.replace(value, this.scopedVars);
}
return str + constraint.key + ' ' + operator + ' ' + value;
if (operator === "IN") {
return str + constraint.key + ' ' + operator + ' (' + value + ')';
} else {
return str + constraint.key + ' ' + operator + ' ' + value;
}
}
interpolateQueryStr(value, variable, defaultFormatFn) {