diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2022-12-24 15:19:14 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2022-12-24 15:21:20 -0500 |
commit | e37fe1db6ef930f657be28fe764f7e642b93464a (patch) | |
tree | d7f72770eb4350c6a9192c52e42932019efa0ed2 /src/backend/utils/adt/jsonpath_internal.h | |
parent | 780ec9f1b2a44c118d1246325404ad0ed2226cbf (diff) | |
download | postgresql-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_internal.h')
-rw-r--r-- | src/backend/utils/adt/jsonpath_internal.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/utils/adt/jsonpath_internal.h b/src/backend/utils/adt/jsonpath_internal.h index edfc6191a0e..b27716855e9 100644 --- a/src/backend/utils/adt/jsonpath_internal.h +++ b/src/backend/utils/adt/jsonpath_internal.h @@ -25,8 +25,14 @@ typedef struct JsonPathString #include "utils/jsonpath.h" #include "jsonpath_gram.h" -extern int jsonpath_yylex(YYSTYPE *yylval_param); -extern int jsonpath_yyparse(JsonPathParseResult **result); -extern void jsonpath_yyerror(JsonPathParseResult **result, const char *message); +#define YY_DECL extern int jsonpath_yylex(YYSTYPE *yylval_param, \ + JsonPathParseResult **result, \ + struct Node *escontext) +YY_DECL; +extern int jsonpath_yyparse(JsonPathParseResult **result, + struct Node *escontext); +extern void jsonpath_yyerror(JsonPathParseResult **result, + struct Node *escontext, + const char *message); #endif /* JSONPATH_INTERNAL_H */ |