瀏覽代碼

revert special handling for IN

Sven Klemm 7 年之前
父節點
當前提交
e6501f0f0e
共有 1 個文件被更改,包括 1 次插入5 次删除
  1. 1 5
      public/app/plugins/datasource/postgres/postgres_query.ts

+ 1 - 5
public/app/plugins/datasource/postgres/postgres_query.ts

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