Skip to content

Commit

Permalink
Fix handling bool in sql input plugin (#9540)
Browse files Browse the repository at this point in the history
(cherry picked from commit ecf27ab)
  • Loading branch information
milgner authored and reimda committed Jul 28, 2021
1 parent 1580652 commit f13d7d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/type_conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ func ToBool(value interface{}) (bool, error) {
return v > 0, nil
case float64:
return v > 0, nil
case bool:
return v, nil
case nil:
return false, nil
}
Expand Down

0 comments on commit f13d7d7

Please sign in to comment.