aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonpath_exec.c
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2022-12-24 15:19:14 -0500
committerAndrew Dunstan <andrew@dunslane.net>2022-12-24 15:21:20 -0500
commite37fe1db6ef930f657be28fe764f7e642b93464a (patch)
treed7f72770eb4350c6a9192c52e42932019efa0ed2 /src/backend/utils/adt/jsonpath_exec.c
parent780ec9f1b2a44c118d1246325404ad0ed2226cbf (diff)
downloadpostgresql-e37fe1db6ef930f657be28fe764f7e642b93464a.tar.gz
postgresql-e37fe1db6ef930f657be28fe764f7e642b93464a.zip
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
Diffstat (limited to 'src/backend/utils/adt/jsonpath_exec.c')
-rw-r--r--src/backend/utils/adt/jsonpath_exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c
index e758616eb83..4335e1c2821 100644
--- a/src/backend/utils/adt/jsonpath_exec.c
+++ b/src/backend/utils/adt/jsonpath_exec.c
@@ -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,