diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2019-06-19 22:40:58 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2019-06-19 22:41:57 +0300 |
commit | 261a5c1928566f938cbda0f62dc16f6a2d1e871d (patch) | |
tree | b8c8f249ab1d48bfa0bfe7b7b0d278f0ff572565 /src/include/utils/jsonpath.h | |
parent | d8594d123c155aeecd47fc2450f62f5100b2fbf0 (diff) | |
download | postgresql-261a5c1928566f938cbda0f62dc16f6a2d1e871d.tar.gz postgresql-261a5c1928566f938cbda0f62dc16f6a2d1e871d.zip |
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
Diffstat (limited to 'src/include/utils/jsonpath.h')
-rw-r--r-- | src/include/utils/jsonpath.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/jsonpath.h b/src/include/utils/jsonpath.h index 3e9d60cb760..40ad5fda928 100644 --- a/src/include/utils/jsonpath.h +++ b/src/include/utils/jsonpath.h @@ -91,6 +91,7 @@ typedef enum JsonPathItemType #define JSP_REGEX_SLINE 0x02 /* s flag, single-line mode */ #define JSP_REGEX_MLINE 0x04 /* m flag, multi-line mode */ #define JSP_REGEX_WSPACE 0x08 /* x flag, expanded syntax */ +#define JSP_REGEX_QUOTE 0x10 /* q flag, no special characters */ /* * Support functions to parse/construct binary value. |