Commit 04f9a6fd by Torkel Ödegaard

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

Quote 'measurement' properly in getAltSegments() (influxdb 0.9)
parents 8149381f 5eee33a1
...@@ -45,10 +45,10 @@ function (angular, _) { ...@@ -45,10 +45,10 @@ function (angular, _) {
query = 'SHOW MEASUREMENTS'; query = 'SHOW MEASUREMENTS';
} else if (index % 2 === 1) { } else if (index % 2 === 1) {
queryType = 'TAG_KEYS'; queryType = 'TAG_KEYS';
query = 'SHOW TAG KEYS FROM ' + measurement; query = 'SHOW TAG KEYS FROM "' + measurement + '"';
} else { } else {
queryType = 'TAG_VALUES'; 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); console.log('getAltSegments: query' , query);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment