From: | David Rowley <drowley(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix overly strict Assert in jsonpath code |
Date: | 2023-08-01 13:42:27 |
Message-ID: | E1qQpdq-0008ho-Hx@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
REL_13_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/74a5bf1b676f75f67f63e57db7e97edd8a1e923f
Modified Files
--------------
src/backend/utils/adt/jsonpath.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2023-08-01 13:45:21 | pgsql: Fix overly strict Assert in jsonpath code |
Previous Message | David Rowley | 2023-08-01 13:41:39 | pgsql: Fix overly strict Assert in jsonpath code |