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

Function exec_stmt_perform

src/pl/plpgsql/src/pl_exec.c:2134–2144  ·  view source on GitHub ↗

---------- * exec_stmt_perform Evaluate query and discard result (but set * FOUND depending on whether at least one row * was returned). * ---------- */

Source from the content-addressed store, hash-verified

2132 * ----------
2133 */
2134static int
2135exec_stmt_perform(PLpgSQL_execstate *estate, PLpgSQL_stmt_perform *stmt)
2136{
2137 PLpgSQL_expr *expr = stmt->expr;
2138
2139 (void) exec_run_select(estate, expr, 0, NULL);
2140 exec_set_found(estate, (estate->eval_processed != 0));
2141 exec_eval_cleanup(estate);
2142
2143 return PLPGSQL_RC_OK;
2144}
2145
2146/*
2147 * exec_stmt_call

Callers 1

exec_stmtsFunction · 0.85

Calls 3

exec_run_selectFunction · 0.85
exec_set_foundFunction · 0.85
exec_eval_cleanupFunction · 0.85

Tested by

no test coverage detected