diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/executor/executor.h | 2 | ||||
| -rw-r--r-- | src/include/parser/parse_coerce.h | 2 | ||||
| -rw-r--r-- | src/include/parser/parse_node.h | 2 | ||||
| -rw-r--r-- | src/include/parser/scanner.h | 2 | ||||
| -rw-r--r-- | src/include/utils/elog.h | 44 |
5 files changed, 26 insertions, 26 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index cd0e6439cd..94890512dc 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -546,7 +546,7 @@ exec_rt_fetch(Index rti, EState *estate) extern Relation ExecGetRangeTableRelation(EState *estate, Index rti); -extern void executor_errposition(EState *estate, int location); +extern int executor_errposition(EState *estate, int location); extern void RegisterExprContextCallback(ExprContext *econtext, ExprContextCallbackFunction function, diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index a3295b3fa4..8686eaacbc 100644 --- a/src/include/parser/parse_coerce.h +++ b/src/include/parser/parse_coerce.h @@ -61,7 +61,7 @@ extern Node *coerce_to_specific_type_typmod(ParseState *pstate, Node *node, Oid targetTypeId, int32 targetTypmod, const char *constructName); -extern void parser_coercion_errposition(ParseState *pstate, +extern int parser_coercion_errposition(ParseState *pstate, int coerce_location, Node *input_expr); diff --git a/src/include/parser/parse_node.h b/src/include/parser/parse_node.h index b223b59542..d25819aa28 100644 --- a/src/include/parser/parse_node.h +++ b/src/include/parser/parse_node.h @@ -307,7 +307,7 @@ typedef struct ParseCallbackState extern ParseState *make_parsestate(ParseState *parentParseState); extern void free_parsestate(ParseState *pstate); -extern void parser_errposition(ParseState *pstate, int location); +extern int parser_errposition(ParseState *pstate, int location); extern void setup_parser_errposition_callback(ParseCallbackState *pcbstate, ParseState *pstate, int location); diff --git a/src/include/parser/scanner.h b/src/include/parser/scanner.h index 02ae10a225..a27352afc1 100644 --- a/src/include/parser/scanner.h +++ b/src/include/parser/scanner.h @@ -140,7 +140,7 @@ extern core_yyscan_t scanner_init(const char *str, extern void scanner_finish(core_yyscan_t yyscanner); extern int core_yylex(core_YYSTYPE *lvalp, YYLTYPE *llocp, core_yyscan_t yyscanner); -extern void scanner_errposition(int location, core_yyscan_t yyscanner); +extern int scanner_errposition(int location, core_yyscan_t yyscanner); extern void setup_scanner_errposition_callback(ScannerCallbackState *scbstate, core_yyscan_t yyscanner, int location); diff --git a/src/include/utils/elog.h b/src/include/utils/elog.h index d244b1c0ac..1e09ee0541 100644 --- a/src/include/utils/elog.h +++ b/src/include/utils/elog.h @@ -149,30 +149,30 @@ extern bool errstart(int elevel, const char *domain); extern void errfinish(const char *filename, int lineno, const char *funcname); -extern void errcode(int sqlerrcode); +extern int errcode(int sqlerrcode); -extern void errcode_for_file_access(void); -extern void errcode_for_socket_access(void); +extern int errcode_for_file_access(void); +extern int errcode_for_socket_access(void); -extern void errmsg(const char *fmt,...) pg_attribute_printf(1, 2); -extern void errmsg_internal(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errmsg(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errmsg_internal(const char *fmt,...) pg_attribute_printf(1, 2); -extern void errmsg_plural(const char *fmt_singular, const char *fmt_plural, +extern int errmsg_plural(const char *fmt_singular, const char *fmt_plural, unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); -extern void errdetail(const char *fmt,...) pg_attribute_printf(1, 2); -extern void errdetail_internal(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errdetail(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errdetail_internal(const char *fmt,...) pg_attribute_printf(1, 2); -extern void errdetail_log(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errdetail_log(const char *fmt,...) pg_attribute_printf(1, 2); -extern void errdetail_log_plural(const char *fmt_singular, +extern int errdetail_log_plural(const char *fmt_singular, const char *fmt_plural, unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); -extern void errdetail_plural(const char *fmt_singular, const char *fmt_plural, +extern int errdetail_plural(const char *fmt_singular, const char *fmt_plural, unsigned long n,...) pg_attribute_printf(1, 4) pg_attribute_printf(2, 4); -extern void errhint(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errhint(const char *fmt,...) pg_attribute_printf(1, 2); /* * errcontext() is typically called in error context callback functions, not @@ -184,22 +184,22 @@ extern void errhint(const char *fmt,...) pg_attribute_printf(1, 2); */ #define errcontext set_errcontext_domain(TEXTDOMAIN), errcontext_msg -extern void set_errcontext_domain(const char *domain); +extern int set_errcontext_domain(const char *domain); -extern void errcontext_msg(const char *fmt,...) pg_attribute_printf(1, 2); +extern int errcontext_msg(const char *fmt,...) pg_attribute_printf(1, 2); -extern void errhidestmt(bool hide_stmt); -extern void errhidecontext(bool hide_ctx); +extern int errhidestmt(bool hide_stmt); +extern int errhidecontext(bool hide_ctx); -extern void errbacktrace(void); +extern int errbacktrace(void); -extern void errfunction(const char *funcname); -extern void errposition(int cursorpos); +extern int errfunction(const char *funcname); +extern int errposition(int cursorpos); -extern void internalerrposition(int cursorpos); -extern void internalerrquery(const char *query); +extern int internalerrposition(int cursorpos); +extern int internalerrquery(const char *query); -extern void err_generic_string(int field, const char *str); +extern int err_generic_string(int field, const char *str); extern int geterrcode(void); extern int geterrposition(void); |
