Skip to content

Commit

Permalink
Remove IF NOT EXISTS from influxdb output
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc authored and aurrelhebert committed Aug 9, 2016
1 parent 21f54d2 commit d84e7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/influxdb/influxdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (i *InfluxDB) Connect() error {
func createDatabase(c client.Client, database string) error {
// Create Database if it doesn't exist
_, err := c.Query(client.Query{
Command: fmt.Sprintf("CREATE DATABASE IF NOT EXISTS \"%s\"", database),
Command: fmt.Sprintf("CREATE DATABASE \"%s\"", database),
})
return err
}
Expand Down

0 comments on commit d84e7db

Please sign in to comment.