8
0
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:
dimitr 2015-09-01 20:51:30 +00:00
parent ce80938834
commit b0630cb0d3

View File

@ -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);