mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 20:59:35 +08:00
put values for IN in parens
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user