MCPcopy Create free account
hub / github.com/apache/cloudberry / sql_function_parse_error_callback

Function sql_function_parse_error_callback

src/backend/catalog/pg_proc.c:1061–1072  ·  view source on GitHub ↗

* Error context callback for handling errors in SQL function definitions */

Source from the content-addressed store, hash-verified

1059 * Error context callback for handling errors in SQL function definitions
1060 */
1061static void
1062sql_function_parse_error_callback(void *arg)
1063{
1064 parse_error_callback_arg *callback_arg = (parse_error_callback_arg *) arg;
1065
1066 /* See if it's a syntax error; if so, transpose to CREATE FUNCTION */
1067 if (!function_parse_error_transpose(callback_arg->prosrc))
1068 {
1069 /* If it's not a syntax error, push info onto context stack */
1070 errcontext("SQL function \"%s\"", callback_arg->proname);
1071 }
1072}
1073
1074/*
1075 * Adjust a syntax error occurring inside the function body of a CREATE

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected