From e37fe1db6ef930f657be28fe764f7e642b93464a Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sat, 24 Dec 2022 15:19:14 -0500 Subject: 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 --- src/include/utils/jsonpath.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/include/utils/jsonpath.h') diff --git a/src/include/utils/jsonpath.h b/src/include/utils/jsonpath.h index 13f60cdc09b..b5035ceb191 100644 --- a/src/include/utils/jsonpath.h +++ b/src/include/utils/jsonpath.h @@ -254,8 +254,11 @@ typedef struct JsonPathParseResult bool lax; } JsonPathParseResult; -extern JsonPathParseResult *parsejsonpath(const char *str, int len); +extern JsonPathParseResult *parsejsonpath(const char *str, int len, + struct Node *escontext); + +extern bool jspConvertRegexFlags(uint32 xflags, int *result, + struct Node *escontext); -extern int jspConvertRegexFlags(uint32 xflags); #endif -- cgit v1.2.3