Skip to content

Commit

Permalink
fix(query): fix json object compare cause panic (#16555)
Browse files Browse the repository at this point in the history
* fix(query): fix json object compare cause panic

* add tests
  • Loading branch information
b41sh authored Oct 3, 2024
1 parent e8895e6 commit d8aa952
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ geozero = { version = "0.13.0", features = ["default", "with-wkb", "with-geos",
hashbrown = { version = "0.14.3", default-features = false }
http = "1"
itertools = "0.10.5"
jsonb = "0.4.1"
jsonb = "0.4.3"
jwt-simple = "0.11.0"
match-template = "0.0.1"
mysql_async = { version = "0.34", default-features = false, features = ["native-tls-tls"] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,11 @@ SELECT parse_json('"cd"') not regexp '.*'
----
0

query BB
SELECT parse_json('{"a":111}') = parse_json('{"a":123,"b":"xxx"}'), parse_json('{"a":123,"b":"xxx"}') = parse_json('{"a":111}')
----
0 0

statement ok
drop table if exists t

Expand Down

0 comments on commit d8aa952

Please sign in to comment.