Merge pull request #2922 from influxdb/jw-errors

Fix field conflict type error message
pull/2941/head
Jason Wilder 2015-06-11 11:11:50 -06:00
commit f21420c3a6
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] ## v0.9.0 [2015-06-11]
### Bugfixes ### 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. // Node represents a node in the InfluxDB abstract syntax tree.
type Node interface { type Node interface {
node() node()