Quote 'measurement' properly in getAltSegments() to allow for dots in measurement identifier (Influxdb 0.9).

This commit is contained in:
Anders Brander
2015-05-07 19:51:55 +02:00
parent 8149381f01
commit 5eee33a11f

View File

@@ -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);