git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5c571a3) | patch
Add more test coverage for jsonpath "$.*" with arrays
2024年7月19日 05:17:56 +0000 (14:17 +0900)
2024年7月19日 05:17:56 +0000 (14:17 +0900)
commit 3a137ab7e575b683c410c46312799a4d88e2b2f2
Add more test coverage for jsonpath "$.*" with arrays

There was no coverage for the code path to unwrap an array before
applying ".*" to it, so add tests to provide more coverage for both
objects and arrays.

This shows, for example, that no results are returned for an array of
scalars, and what results are returned when the array contains an
object. A few more scenarios are covered with the strict/lax modes and
the operator "@?".

Author: David Wheeler
Reported-by: David G. Johnston, Stepan Neretin
Discussion: https://postgr.es/m/A95346F9-6147-46E0-809E-532A485D71D6@justatheory.com
src/test/regress/expected/jsonb_jsonpath.out diff | blob | blame | history
src/test/regress/sql/jsonb_jsonpath.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /