Commit 164caa39 authored by Tom Lane's avatar Tom Lane

System neglected to complain about ungrouped variables passed to

sublinks when outer query contained aggregates but no GROUP clause.
parent 74f0b61b
......@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.89 2000/09/12 21:06:54 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.90 2000/09/25 18:09:28 tgl Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -184,7 +184,7 @@ subquery_planner(Query *parse, double tuple_fraction)
parse->qual = SS_process_sublinks(parse->qual);
parse->havingQual = SS_process_sublinks(parse->havingQual);
if (parse->groupClause != NIL)
if (parse->groupClause != NIL || parse->hasAggs)
{
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment