Commit f237cac0 by Haneysmith, Nathan

add double quotes around tags

parent f6ad386b
......@@ -15,9 +15,9 @@ function (_) {
}
if (tag.value && tag.value[0] === '/' && tag.value[tag.value.length - 1] === '/') {
return str + tag.key + ' =~ ' + tag.value;
return str + '"' +tag.key + '"' + ' =~ ' + tag.value;
}
return str + tag.key + " = '" + tag.value + "'";
return str + '"' + tag.key + '"' + " = '" + tag.value + "'";
}
var p = InfluxQueryBuilder.prototype;
......@@ -92,7 +92,7 @@ function (_) {
query += ' GROUP BY time($interval)';
if (target.groupByTags && target.groupByTags.length > 0) {
query += ', ' + target.groupByTags.join();
query += ', "' + target.groupByTags.join('", "') + '"';
}
if (target.fill) {
......
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