aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/jsonpath.h
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/include/utils/jsonpath.h
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/include/utils/jsonpath.h')
-rw-r--r--src/include/utils/jsonpath.h7
1 files changed, 5 insertions, 2 deletions
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