mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Convert jsonpath's input function to report errors softly
Reviewed by Tom Lane Discussion: https://postgr.es/m/a8dc5700-c341-3ba8-0507-cc09881e6200@dunslane.net
This commit is contained in:
@ -1721,7 +1721,8 @@ executeLikeRegex(JsonPathItem *jsp, JsonbValue *str, JsonbValue *rarg,
|
||||
cxt->regex =
|
||||
cstring_to_text_with_len(jsp->content.like_regex.pattern,
|
||||
jsp->content.like_regex.patternlen);
|
||||
cxt->cflags = jspConvertRegexFlags(jsp->content.like_regex.flags);
|
||||
(void) jspConvertRegexFlags(jsp->content.like_regex.flags,
|
||||
&(cxt->cflags), NULL);
|
||||
}
|
||||
|
||||
if (RE_compile_and_execute(cxt->regex, str->val.string.val,
|
||||
|
Reference in New Issue
Block a user