From 10a0d6fd8ce039658eaace9957168bc0bd0715d0 Mon Sep 17 00:00:00 2001 From: dimitr Date: Tue, 1 Sep 2015 20:54:31 +0000 Subject: [PATCH] Fixed CORE-4921: Predicate IS [NOT] DISTINCT FROM is not pushed into unions/aggregates thus causing sub-optimal plans. --- src/jrd/opt.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jrd/opt.cpp b/src/jrd/opt.cpp index 118a86b62b..681abf785e 100644 --- a/src/jrd/opt.cpp +++ b/src/jrd/opt.cpp @@ -4245,6 +4245,7 @@ static void gen_deliver_unmapped(thread_db* tdbb, NodeStack* deliverStack, // Reduce to simple comparisons if (!((boolean->nod_type == nod_eql) || + (boolean->nod_type == nod_equiv) || (boolean->nod_type == nod_gtr) || (boolean->nod_type == nod_geq) || (boolean->nod_type == nod_leq) ||