mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 06:03:02 +01:00
Fixed CORE-4574 - Incorrect result in subquery with aggregate.
This commit is contained in:
parent
018355246d
commit
3a6c1093fb
@ -2166,7 +2166,7 @@ RseNode* RseNode::dsqlFieldRemapper(FieldRemapper& visitor)
|
||||
return this;
|
||||
}
|
||||
|
||||
bool RseNode::dsqlMatch(const ExprNode* other, bool /*ignoreMapCast*/) const
|
||||
bool RseNode::dsqlMatch(const ExprNode* other, bool ignoreMapCast) const
|
||||
{
|
||||
const RseNode* o = other->as<RseNode>();
|
||||
|
||||
@ -2175,7 +2175,8 @@ bool RseNode::dsqlMatch(const ExprNode* other, bool /*ignoreMapCast*/) const
|
||||
|
||||
// ASF: Commented-out code "Fixed assertion when subquery is used in group by" to make
|
||||
// CORE-4084 work again.
|
||||
return /***dsqlContext &&***/ dsqlContext == o->dsqlContext;
|
||||
return /***dsqlContext &&***/ dsqlContext == o->dsqlContext &&
|
||||
RecordSourceNode::dsqlMatch(other, ignoreMapCast);
|
||||
}
|
||||
|
||||
// Make up join node and mark relations as "possibly NULL" if they are in outer joins (inOuterJoin).
|
||||
|
Loading…
Reference in New Issue
Block a user