fix(iotdb): correctly handle undefined value of bool type

This commit is contained in:
firest 2024-04-07 17:26:15 +08:00
parent 04ba2aaf8a
commit f40e47365c
1 changed files with 1 additions and 0 deletions

View File

@ -526,6 +526,7 @@ replace_var(Val, _Data) ->
convert_bool(B) when is_boolean(B) -> B;
convert_bool(null) -> null;
convert_bool(undefined) -> null;
convert_bool(1) -> true;
convert_bool(0) -> false;
convert_bool(<<"1">>) -> true;