mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Fixed CORE-4921: Predicate IS [NOT] DISTINCT FROM is not pushed into unions/aggregates thus causing sub-optimal plans.
This commit is contained in:
parent
ce80938834
commit
b0630cb0d3
@ -3509,8 +3509,10 @@ static void genDeliverUnmapped(thread_db* tdbb, BoolExprNodeStack* deliverStack,
|
||||
HalfStaticArray<ValueExprNode*, 2> children;
|
||||
|
||||
if (cmpNode &&
|
||||
(cmpNode->blrOp == blr_eql || cmpNode->blrOp == blr_gtr || cmpNode->blrOp == blr_geq ||
|
||||
cmpNode->blrOp == blr_leq || cmpNode->blrOp == blr_lss || cmpNode->blrOp == blr_starting))
|
||||
(cmpNode->blrOp == blr_eql || cmpNode->blrOp == blr_equiv ||
|
||||
cmpNode->blrOp == blr_gtr || cmpNode->blrOp == blr_geq ||
|
||||
cmpNode->blrOp == blr_leq || cmpNode->blrOp == blr_lss ||
|
||||
cmpNode->blrOp == blr_starting))
|
||||
{
|
||||
children.add(cmpNode->arg1);
|
||||
children.add(cmpNode->arg2);
|
||||
|
Loading…
Reference in New Issue
Block a user