Expand DBKEY for view
| 127 | |
| 128 | // Expand DBKEY for view |
| 129 | void expandViewNodes(CompilerScratch* csb, StreamType baseStream, |
| 130 | ValueExprNodeStack& stack, UCHAR blrOp) |
| 131 | { |
| 132 | SortedStreamList viewStreams; |
| 133 | expandViewStreams(csb, baseStream, viewStreams); |
| 134 | |
| 135 | for (auto stream : viewStreams) |
| 136 | { |
| 137 | const auto csb_tail = &csb->csb_rpt[stream]; |
| 138 | |
| 139 | // If relation is primitive, make DBKEY node |
| 140 | |
| 141 | if (csb_tail->csb_relation) |
| 142 | { |
| 143 | const auto node = FB_NEW_POOL(csb->csb_pool) RecordKeyNode(csb->csb_pool, blrOp); |
| 144 | node->recStream = stream; |
| 145 | stack.push(node); |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | // Look at all RSEs which are lower in scope than the RSE which this field is |
| 151 | // referencing, and mark them as variant - the rule is that if a field from one RSE is |
no test coverage detected