* Error context callback for handling errors in SQL function definitions */
| 1059 | * Error context callback for handling errors in SQL function definitions |
| 1060 | */ |
| 1061 | static void |
| 1062 | sql_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 |
nothing calls this directly
no test coverage detected