Skip to content
Snippets Groups Projects
Commit 5917a429 authored by Cameron Sparr's avatar Cameron Sparr
Browse files

influxdb output: quote the database name

closes #898
parent fbe16642
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
### Bugfixes ### Bugfixes
- [#890](https://github.com/influxdata/telegraf/issues/890): Create TLS config even if only ssl_ca is provided. - [#890](https://github.com/influxdata/telegraf/issues/890): Create TLS config even if only ssl_ca is provided.
- [#884](https://github.com/influxdata/telegraf/issues/884): Do not call write method if there are 0 metrics to write. - [#884](https://github.com/influxdata/telegraf/issues/884): Do not call write method if there are 0 metrics to write.
- [#898](https://github.com/influxdata/telegraf/issues/898): Put database name in quotes, fixes special characters in the database name.
## v0.11.1 [2016-03-17] ## v0.11.1 [2016-03-17]
......
...@@ -127,7 +127,7 @@ func (i *InfluxDB) Connect() error { ...@@ -127,7 +127,7 @@ func (i *InfluxDB) Connect() error {
// Create Database if it doesn't exist // Create Database if it doesn't exist
_, e := c.Query(client.Query{ _, e := c.Query(client.Query{
Command: fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s", i.Database), Command: fmt.Sprintf("CREATE DATABASE IF NOT EXISTS \"%s\"", i.Database),
}) })
if e != nil { if e != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment