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

Function assign_record_var

src/pl/plpgsql/src/pl_exec.c:8473–8488  ·  view source on GitHub ↗

* assign_record_var --- assign a new value to any REC datum. */

Source from the content-addressed store, hash-verified

8471 * assign_record_var --- assign a new value to any REC datum.
8472 */
8473static void
8474assign_record_var(PLpgSQL_execstate *estate, PLpgSQL_rec *rec,
8475 ExpandedRecordHeader *erh)
8476{
8477 Assert(rec->dtype == PLPGSQL_DTYPE_REC);
8478
8479 /* Transfer new record object into datum_context */
8480 TransferExpandedRecord(erh, estate->datum_context);
8481
8482 /* Free the old value ... */
8483 if (rec->erh)
8484 DeleteExpandedObject(ExpandedRecordGetDatum(rec->erh));
8485
8486 /* ... and install the new */
8487 rec->erh = erh;
8488}
8489
8490/*
8491 * exec_eval_using_params --- evaluate params of USING clause

Callers 3

exec_move_rowFunction · 0.85
exec_move_row_from_datumFunction · 0.85

Calls 1

DeleteExpandedObjectFunction · 0.85

Tested by

no test coverage detected