Skip to content

Commit

Permalink
Fix #8213 - WHEN NOT MATCHED BY SOURCE - does not work with a direct …
Browse files Browse the repository at this point in the history
…table as source.
  • Loading branch information
asfernandes committed Aug 20, 2024
1 parent 088b529 commit d40d01b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dsql/StmtNodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6734,6 +6734,9 @@ StmtNode* MergeNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
auto relNode = FB_NEW_POOL(dsqlScratch->getPool()) RelationSourceNode(dsqlScratch->getPool());
relNode->dsqlContext = source->dsqlContext;

// Collect contexts that will be used for blr_derived_expr generation.
PASS1_expand_contexts(source->dsqlContext->ctx_main_derived_contexts, source->dsqlContext);

return FB_NEW_POOL(dsqlScratch->getPool()) DerivedFieldNode(dsqlScratch->getPool(), source->dsqlContext,
MAKE_constant("1", CONSTANT_BOOLEAN));
};
Expand Down

0 comments on commit d40d01b

Please sign in to comment.