System neglected to complain about ungrouped variables passed to

sublinks when outer query contained aggregates but no GROUP clause.
This commit is contained in:
Tom Lane 2000-09-25 18:09:28 +00:00
parent 74f0b61bf4
commit 164caa3951
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{
/*