Fix handling bool in sql input plugin (#9540)

This commit is contained in:
Marcus Ilgner 2021-07-27 23:32:00 +02:00 committed by GitHub
parent 837eb31b3f
commit ecf27ab956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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
}