From d599c8f945440d919472f2c90639725ee1c8be48 Mon Sep 17 00:00:00 2001 From: arnobrinkman Date: Wed, 17 Nov 2004 22:01:44 +0000 Subject: [PATCH] Fix bug in aggregate-functions which burried EXISTS/SINGULAR predicate. See bug #1063254 --- src/dsql/pass1.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/dsql/pass1.cpp b/src/dsql/pass1.cpp index 73f95f5c70..bb6b9c2ac6 100644 --- a/src/dsql/pass1.cpp +++ b/src/dsql/pass1.cpp @@ -1783,8 +1783,10 @@ static bool aggregate_found2(const dsql_req* request, const dsql_nod* node, case nod_exists: case nod_singular: - aggregate = aggregate_found2(request, node->nod_arg[0], current_level, - deepest_level, ignore_sub_selects); + if (!ignore_sub_selects) { + aggregate = aggregate_found2(request, node->nod_arg[0], current_level, + deepest_level, ignore_sub_selects); + } return aggregate; case nod_aggregate: