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

Function exec_stmt_assign

src/pl/plpgsql/src/pl_exec.c:2118–2126  ·  view source on GitHub ↗

---------- * exec_stmt_assign Evaluate an expression and * put the result into a variable. * ---------- */

Source from the content-addressed store, hash-verified

2116 * ----------
2117 */
2118static int
2119exec_stmt_assign(PLpgSQL_execstate *estate, PLpgSQL_stmt_assign *stmt)
2120{
2121 Assert(stmt->varno >= 0);
2122
2123 exec_assign_expr(estate, estate->datums[stmt->varno], stmt->expr);
2124
2125 return PLPGSQL_RC_OK;
2126}
2127
2128/* ----------
2129 * exec_stmt_perform Evaluate query and discard result (but set

Callers 1

exec_stmtsFunction · 0.85

Calls 1

exec_assign_exprFunction · 0.85

Tested by

no test coverage detected