Skip to content

Commit fd135f4

Browse files
committed
Hopefully, this should fix the remaining issues with invariants vs views (see #7863)
1 parent 8bb32bb commit fd135f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/dsql/ExprNodes.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5334,19 +5334,19 @@ ValueExprNode* DerivedExprNode::pass1(thread_db* tdbb, CompilerScratch* csb)
53345334

53355335
SortedStreamList newStreams;
53365336

5337-
for (const auto i : internalStreamList)
5338-
{
5339-
markVariant(csb, i);
5340-
expandViewStreams(csb, i, newStreams);
5341-
}
5337+
for (const auto stream : internalStreamList)
5338+
expandViewStreams(csb, stream, newStreams);
53425339

53435340
#ifdef CMP_DEBUG
53445341
for (const auto i : newStreams)
53455342
csb->dump(" %d", i);
53465343
csb->dump("\n");
53475344
#endif
53485345

5349-
internalStreamList.assign(newStreams.begin(), newStreams.getCount());
5346+
for (const auto stream : newStreams)
5347+
markVariant(csb, stream);
5348+
5349+
internalStreamList.assign(newStreams);
53505350

53515351
return this;
53525352
}

0 commit comments

Comments
 (0)