MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / dsqlSetParametersName

Function dsqlSetParametersName

src/dsql/StmtNodes.cpp:10624–10643  ·  view source on GitHub ↗

Setup parameter parameters name.

Source from the content-addressed store, hash-verified

10622
10623// Setup parameter parameters name.
10624static void dsqlSetParametersName(DsqlCompilerScratch* dsqlScratch, CompoundStmtNode* statements,
10625 const RecordSourceNode* relNode)
10626{
10627 const dsql_ctx* context = relNode->dsqlContext;
10628 DEV_BLKCHK(context, dsql_type_ctx);
10629 const dsql_rel* relation = context->ctx_relation;
10630
10631 FB_SIZE_T count = statements->statements.getCount();
10632 NestConst<StmtNode>* ptr = statements->statements.begin();
10633
10634 for (NestConst<StmtNode>* const end = ptr + count; ptr != end; ++ptr)
10635 {
10636 AssignmentNode* assign = nodeAs<AssignmentNode>(*ptr);
10637
10638 if (assign)
10639 dsqlSetParameterName(dsqlScratch, assign->asgnFrom, assign->asgnTo, relation);
10640 else
10641 fb_assert(false);
10642 }
10643}
10644
10645// Perform cleaning of rpb, zeroing unassigned fields and the impure tail of varying fields that
10646// we don't want to carry when the RLE algorithm is applied.

Callers 1

internalDsqlPassMethod · 0.85

Calls 3

dsqlSetParameterNameFunction · 0.85
getCountMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected