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

Function get_parse_rowmark

src/backend/parser/parse_relation.c:3710–3723  ·  view source on GitHub ↗

* Given a Query and rangetable index, return relation's RowMarkClause if any * * Returns NULL if relation is not selected FOR UPDATE/SHARE */

Source from the content-addressed store, hash-verified

3708 * Returns NULL if relation is not selected FOR UPDATE/SHARE
3709 */
3710RowMarkClause *
3711get_parse_rowmark(Query *qry, Index rtindex)
3712{
3713 ListCell *l;
3714
3715 foreach(l, qry->rowMarks)
3716 {
3717 RowMarkClause *rc = (RowMarkClause *) lfirst(l);
3718
3719 if (rc->rti == rtindex)
3720 return rc;
3721 }
3722 return NULL;
3723}
3724
3725/*
3726 * given relation and att name, return attnum of variable

Callers 3

AcquireRewriteLocksFunction · 0.85
ApplyRetrieveRuleFunction · 0.85
applyLockingClauseFunction · 0.85

Calls 1

foreachFunction · 0.50

Tested by

no test coverage detected