Setup parameter parameters name.
| 10622 | |
| 10623 | // Setup parameter parameters name. |
| 10624 | static 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. |
no test coverage detected