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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: d3a3831) | patch
Fix overly strict Assert in jsonpath code
Tue, 1 Aug 2023 13:39:47 +0000 (01:39 +1200)
Tue, 1 Aug 2023 13:39:47 +0000 (01:39 +1200)
commit deae1657ee6dd6f7b3effab3d44429d5434f5bbf
Fix overly strict Assert in jsonpath code

This was failing for queries which try to get the .type() of a
jpiLikeRegex. For example:

select jsonb_path_query('["string", "string"]',
'($[0] like_regex ".{7}").type()');

Reported-by: Alexander Kozhemyakin
Bug: #18035
Discussion: https://postgr.es/m/18035-64af5cdcb5adf2a9@postgresql.org
Backpatch-through: 12, where SQL/JSON path was added.
src/backend/utils/adt/jsonpath.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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