mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-15 10:57:02 +08:00
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
This commit is contained in:
@ -83,6 +83,9 @@ select '$ ? (@ like_regex "pattern" flag "i")'::jsonpath;
|
||||
select '$ ? (@ like_regex "pattern" flag "is")'::jsonpath;
|
||||
select '$ ? (@ like_regex "pattern" flag "isim")'::jsonpath;
|
||||
select '$ ? (@ like_regex "pattern" flag "xsms")'::jsonpath;
|
||||
select '$ ? (@ like_regex "pattern" flag "q")'::jsonpath;
|
||||
select '$ ? (@ like_regex "pattern" flag "iq")'::jsonpath;
|
||||
select '$ ? (@ like_regex "pattern" flag "smixq")'::jsonpath;
|
||||
select '$ ? (@ like_regex "pattern" flag "a")'::jsonpath;
|
||||
|
||||
select '$ < 1'::jsonpath;
|
||||
|
||||
Reference in New Issue
Block a user