pgsql: Fix overly strict Assert in jsonpath code

Поиск
Список
Период
Сортировка
От David Rowley
Тема pgsql: Fix overly strict Assert in jsonpath code
Дата
Msg-id E1qQpd4-0008gq-6p@gemulon.postgresql.org
обсуждение исходный текст
Список 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_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f457f2ef140a9a218ded6befed6d7dc625aac3ec

Modified Files
--------------
src/backend/utils/adt/jsonpath.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: pgsql: Fix overly strict Assert in jsonpath code
Следующее
От: David Rowley
Дата:
Сообщение: pgsql: Fix overly strict Assert in jsonpath code