Skip to content

Commit

Permalink
fix: checking empty values (influxdata#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlastahajek committed May 4, 2020
1 parent 25331f6 commit 017c01f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ func stringTernary(a, b string) string {

// toValues converts s into type by t
func toValue(s, t, name string) (interface{}, error) {
if s == "" {
return nil, nil
}
switch t {
case stringDatatype:
return s, nil
Expand Down

0 comments on commit 017c01f

Please sign in to comment.