Merge pull request #12842 from lafirest/fix/iotdb

fix(iotdb): correctly handle undefined value of bool type
This commit is contained in:
JianBo He 2024-04-10 09:49:16 +08:00 committed by GitHub
commit 5f8986209e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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;