Skip to content

Commit

Permalink
Fix handling bool in sql input plugin (#9540)
Browse files Browse the repository at this point in the history
  • Loading branch information
milgner authored Jul 27, 2021
1 parent 837eb31 commit ecf27ab
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 ecf27ab

Please sign in to comment.