Преглед на файлове

dont quote where constraints

Sven Klemm преди 7 години
родител
ревизия
958646d976
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      public/app/plugins/datasource/postgres/postgres_query.ts

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

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