fix(iotdb): correctly handle undefined value of bool type
This commit is contained in:
parent
04ba2aaf8a
commit
f40e47365c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue