Commit e3d7e3c1 by Torkel Ödegaard

Merge pull request #369 from jbripley/influxdb-columnname-escape

Change InfluxDB SQL generation template to wrap column names in quoutes
parents 0dae8f99 11446b3e
...@@ -62,7 +62,7 @@ function (angular, _, kbn) { ...@@ -62,7 +62,7 @@ function (angular, _, kbn) {
query = queryElements.join(" "); query = queryElements.join(" ");
} }
else { else {
var template = "select [[func]]([[column]]) as [[column]]_[[func]] from [[series]] " + var template = "select [[func]](\"[[column]]\") as \"[[column]]_[[func]]\" from [[series]] " +
"where [[timeFilter]] [[condition_add]] [[condition_key]] [[condition_op]] [[condition_value]] " + "where [[timeFilter]] [[condition_add]] [[condition_key]] [[condition_op]] [[condition_value]] " +
"group by time([[interval]]) order asc"; "group by time([[interval]]) order asc";
......
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