1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Small HAVING cleanup.

This commit is contained in:
Bruce Momjian
1998-03-31 23:31:10 +00:00
parent 9fbdda039d
commit 8dc48ba877
4 changed files with 16 additions and 11 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.24 1998/03/30 16:36:04 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/optimizer/plan/planner.c,v 1.25 1998/03/31 23:30:51 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -292,11 +292,10 @@ union_planner(Query *parse)
((Agg *) result_plan)->aggs =
set_agg_tlist_references((Agg *) result_plan);
/***S*H***/
if(parse->havingQual!=NULL) {
if(parse->havingQual != NULL) {
List *clause;
/***S*H***/ /* set qpqual of having clause */
/* set qpqual of having clause */
((Agg *) result_plan)->plan.qual=cnfify((Expr *)parse->havingQual,true);
foreach(clause, ((Agg *) result_plan)->plan.qual)