mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 12:03:02 +01:00
Fixed CORE-6408 - RETURNING clause in MERGE cannot reference column in aliased
target table using qualified reference (alias.column) if DELETE action present.
This commit is contained in:
parent
4a4e1e6d2f
commit
1d2944cb98
@ -156,6 +156,10 @@ namespace
|
|||||||
// Create the target (= OLD) context and push it on the stack.
|
// Create the target (= OLD) context and push it on the stack.
|
||||||
dsql_ctx* targetContext = FB_NEW_POOL(scratch->getPool()) dsql_ctx(scratch->getPool());
|
dsql_ctx* targetContext = FB_NEW_POOL(scratch->getPool()) dsql_ctx(scratch->getPool());
|
||||||
*targetContext = *oldContext;
|
*targetContext = *oldContext;
|
||||||
|
|
||||||
|
// ASF: dsql_ctx::operator= do not copy ctx_internal_alias.
|
||||||
|
targetContext->ctx_internal_alias = oldContext->ctx_internal_alias;
|
||||||
|
|
||||||
targetContext->ctx_flags &= ~CTX_system; // resolve unqualified fields
|
targetContext->ctx_flags &= ~CTX_system; // resolve unqualified fields
|
||||||
scratch->context->push(targetContext);
|
scratch->context->push(targetContext);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user