Explorar o código

dont quote where constraints

Sven Klemm %!s(int64=7) %!d(string=hai) anos
pai
achega
958646d976
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
       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) {
   interpolateQueryStr(value, variable, defaultFormatFn) {