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

Function plpython_error_callback

src/pl/plpython/plpy_main.c:431–445  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

429}
430
431static void
432plpython_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
447static void
448plpython_inline_error_callback(void *arg)

Callers

nothing calls this directly

Calls 1

PLy_procedure_nameFunction · 0.85

Tested by

no test coverage detected