| 429 | } |
| 430 | |
| 431 | static void |
| 432 | plpython_error_callback(void *arg) |
| 433 | { |
| 434 | PLyExecutionContext *exec_ctx = (PLyExecutionContext *) arg; |
| 435 | |
| 436 | if (exec_ctx->curr_proc) |
| 437 | { |
| 438 | if (exec_ctx->curr_proc->is_procedure) |
| 439 | errcontext("PL/Python procedure \"%s\"", |
| 440 | PLy_procedure_name(exec_ctx->curr_proc)); |
| 441 | else |
| 442 | errcontext("PL/Python function \"%s\"", |
| 443 | PLy_procedure_name(exec_ctx->curr_proc)); |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | static void |
| 448 | plpython_inline_error_callback(void *arg) |
nothing calls this directly
no test coverage detected