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

Function plpgsql_pre_column_ref

src/pl/plpgsql/src/pl_comp.c:1112–1121  ·  view source on GitHub ↗

* plpgsql_pre_column_ref parser callback before parsing a ColumnRef */

Source from the content-addressed store, hash-verified

1110 * plpgsql_pre_column_ref parser callback before parsing a ColumnRef
1111 */
1112static Node *
1113plpgsql_pre_column_ref(ParseState *pstate, ColumnRef *cref)
1114{
1115 PLpgSQL_expr *expr = (PLpgSQL_expr *) pstate->p_ref_hook_state;
1116
1117 if (expr->func->resolve_option == PLPGSQL_RESOLVE_VARIABLE)
1118 return resolve_column_ref(pstate, expr, cref, false);
1119 else
1120 return NULL;
1121}
1122
1123/*
1124 * plpgsql_post_column_ref parser callback after parsing a ColumnRef

Callers

nothing calls this directly

Calls 1

resolve_column_refFunction · 0.85

Tested by

no test coverage detected