Просмотр исходного кода

Merge pull request #1963 from abrander/measurement-in-quotes

Quote 'measurement' properly in getAltSegments() (influxdb 0.9)
Torkel Ödegaard 10 лет назад
Родитель
Сommit
04f9a6fdd0
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      public/app/plugins/datasource/influxdb/queryCtrl.js

+ 2 - 2
public/app/plugins/datasource/influxdb/queryCtrl.js

@@ -45,10 +45,10 @@ function (angular, _) {
         query = 'SHOW MEASUREMENTS';
       } else if (index % 2 === 1) {
         queryType = 'TAG_KEYS';
-        query = 'SHOW TAG KEYS FROM ' + measurement;
+        query = 'SHOW TAG KEYS FROM "' + measurement + '"';
       } else {
         queryType = 'TAG_VALUES';
-        query = "SHOW TAG VALUES FROM " + measurement + " WITH KEY = " + $scope.segments[$scope.segments.length - 2].value;
+        query = 'SHOW TAG VALUES FROM "' + measurement + '" WITH KEY = ' + $scope.segments[$scope.segments.length - 2].value;
       }
 
       console.log('getAltSegments: query' , query);