Merge pull request #2922 from influxdb/jw-errors
Fix field conflict type error messagepull/2941/head
commit
f21420c3a6
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue