8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 18:03:04 +01:00

Fixed CORE-3611 - Wrong data while retrieving from CTEs (or derived tables) with same column names.

This commit is contained in:
asfernandes 2011-10-27 23:53:15 +00:00
parent e761c32f19
commit 9ae117e388

View File

@ -1347,7 +1347,7 @@ bool PASS1_node_match(const dsql_nod* node1, const dsql_nod* node2, bool ignore_
{
if (derivedField1 && derivedField2)
{
if (derivedField1->scope != derivedField2->scope ||
if (derivedField1->context->ctx_context != derivedField2->context->ctx_context ||
derivedField1->name != derivedField2->name)
{
return false;