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

Function exec_stmt_rollback

src/pl/plpgsql/src/pl_exec.c:4915–4932  ·  view source on GitHub ↗

* exec_stmt_rollback * * Abort the transaction. */

Source from the content-addressed store, hash-verified

4913 * Abort the transaction.
4914 */
4915static int
4916exec_stmt_rollback(PLpgSQL_execstate *estate, PLpgSQL_stmt_rollback *stmt)
4917{
4918 if (stmt->chain)
4919 SPI_rollback_and_chain();
4920 else
4921 SPI_rollback();
4922
4923 /*
4924 * We need to build new simple-expression infrastructure, since the old
4925 * data structures are gone.
4926 */
4927 estate->simple_eval_estate = NULL;
4928 estate->simple_eval_resowner = NULL;
4929 plpgsql_create_econtext(estate);
4930
4931 return PLPGSQL_RC_OK;
4932}
4933
4934/* ----------
4935 * exec_assign_expr Put an expression's result into a variable.

Callers 1

exec_stmtsFunction · 0.85

Calls 3

SPI_rollback_and_chainFunction · 0.85
SPI_rollbackFunction · 0.85
plpgsql_create_econtextFunction · 0.85

Tested by

no test coverage detected