From 763ff8aef848d71da079049890786edffc3302d6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 15 Jan 1998 19:00:16 +0000 Subject: Remove Query->qry_aggs and qry_numaggs and replace with Query->hasAggs. Pass List* of Aggregs into executor, and create needed array there. No longer need to double-processs Aggregs with second copy in Query. Fix crash when doing: select sum(x+1) from test where 1 > 0; --- src/include/parser/parse_node.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/include/parser/parse_node.h') diff --git a/src/include/parser/parse_node.h b/src/include/parser/parse_node.h index de6b03a1ad..be49fe7a0f 100644 --- a/src/include/parser/parse_node.h +++ b/src/include/parser/parse_node.h @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_node.h,v 1.3 1997/11/26 03:43:13 momjian Exp $ + * $Id: parse_node.h,v 1.4 1998/01/15 19:00:16 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -30,10 +30,9 @@ typedef struct ParseState { int p_last_resno; List *p_rtable; - int p_numAgg; - List *p_aggs; - bool p_is_insert; List *p_insert_columns; + bool p_hasAggs; + bool p_is_insert; bool p_is_update; bool p_is_rule; bool p_in_where_clause; -- cgit v1.2.1