Skip to content

Commit

Permalink
Quote 'measurement' properly in getAltSegments() to allow for dots in…
Browse files Browse the repository at this point in the history
… measurement identifier (Influxdb 0.9).
  • Loading branch information
abrander committed May 7, 2015
1 parent 8149381 commit 5eee33a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/plugins/datasource/influxdb/queryCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5eee33a

Please sign in to comment.