mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +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:
@ -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 */
|
||||
|
Reference in New Issue
Block a user