8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:43:02 +01:00

Fix #8213 - WHEN NOT MATCHED BY SOURCE - does not work with a direct table as source.

This commit is contained in:
Adriano dos Santos Fernandes 2024-08-16 22:10:45 -03:00
parent 088b5292ed
commit d40d01bc45

View File

@ -6734,6 +6734,9 @@ StmtNode* MergeNode::dsqlPass(DsqlCompilerScratch* dsqlScratch)
auto relNode = FB_NEW_POOL(dsqlScratch->getPool()) RelationSourceNode(dsqlScratch->getPool()); auto relNode = FB_NEW_POOL(dsqlScratch->getPool()) RelationSourceNode(dsqlScratch->getPool());
relNode->dsqlContext = source->dsqlContext; 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, return FB_NEW_POOL(dsqlScratch->getPool()) DerivedFieldNode(dsqlScratch->getPool(), source->dsqlContext,
MAKE_constant("1", CONSTANT_BOOLEAN)); MAKE_constant("1", CONSTANT_BOOLEAN));
}; };