소스 검색

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) {