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:
parent
088b5292ed
commit
d40d01bc45
@ -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));
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user