Fix field type conflict error

Fixes #2908
pull/2922/head
Jason Wilder 2015-06-11 08:30:01 -06:00
parent 9db2e82879
commit ad02244863
2 changed files with 24 additions and 0 deletions

View File

@ -1,3 +1,9 @@
## v0.9.1 [unreleased]
### Bugfixes
- [#2908](https://github.com/influxdb/influxdb/issues/2908): Field mismatch error messages need to be updated
## v0.9.0 [2015-06-11]
### Bugfixes

View File

@ -51,6 +51,24 @@ func InspectDataType(v interface{}) DataType {
}
}
func (d DataType) String() string {
switch d {
case Float:
return "float"
case Integer:
return "integer"
case Boolean:
return "boolean"
case String:
return "string"
case Time:
return "time"
case Duration:
return "duration"
}
return "unknown"
}
// Node represents a node in the InfluxDB abstract syntax tree.
type Node interface {
node()