Support 'q' flag in jsonpath 'like_regex' predicate
Alexander Korotkov <akorotkov@postgresql.org>
Support 'q' flag in jsonpath 'like_regex' predicate SQL/JSON standard defines that jsonpath 'like_regex' predicate should support the same set of flags as XQuery/XPath. It appears that implementation of 'q' flag was missed. This commit fixes that. Discussion: https://postgr.es/m/CAPpHfdtyfPsxLYiTjp5Ov8T5xGsB5t3CwE5%2B3PS%3DLLwA%2BxTJog%40mail.gmail.com Author: Nikita Glukhov, Alexander Korotkov
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/jsonpath.c | modified | +2 −0 |
| src/backend/utils/adt/jsonpath_exec.c | modified | +11 −0 |
| src/backend/utils/adt/jsonpath_gram.y | modified | +8 −0 |
| src/include/utils/jsonpath.h | modified | +1 −0 |
| src/test/regress/expected/jsonb_jsonpath.out | modified | +36 −0 |
| src/test/regress/expected/jsonpath.out | modified | +18 −0 |
| src/test/regress/sql/jsonb_jsonpath.sql | modified | +6 −0 |
| src/test/regress/sql/jsonpath.sql | modified | +3 −0 |
Discussion
- SQL/JSON path issues/questions 36 messages · 2019-06-13 → 2019-07-24