It's a duplicate problem of CORE-3611.
I commented in that ticket: I'm fixing this only in 3.0 cause I'm not
very sure of unintended regressions.
Anyone could review the fix?
Patch for 2.5 is attached.
Adriano
diff --git a/src/dsql/pass1.cpp b/src/dsql/pass1.cpp
index fa6d6eb..c948c1d 100644
--- a/src/dsql/pass1.cpp
+++ b/src/dsql/pass1.cpp
@@ -3339,9 +3339,9 @@ static bool node_match(const dsql_nod* node1, const
dsql_nod* node2,
{
if ((node1->nod_type == nod_derived_field) && (node2->nod_type
== nod_derived_field))
{
- const USHORT scope_level1 =
(USHORT)(U_IPTR)node1->nod_arg[e_derived_field_scope];
- const USHORT scope_level2 =
(USHORT)(U_IPTR)node2->nod_arg[e_derived_field_scope];
- if (scope_level1 != scope_level2)
+ const dsql_nod* context1 =
node1->nod_arg[e_derived_field_context];
+ const dsql_nod* context2 =
node2->nod_arg[e_derived_field_context];
+ if (context1 != context2)
return false;
const dsql_str* alias1 = (dsql_str*)
node1->nod_arg[e_derived_field_name];
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel