From b19adc1aae8ec6c84d8c3f25919b866319d77a27 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 17 Jan 2003 03:25:04 +0000 Subject: Fix parse_agg.c to detect ungrouped Vars in sub-SELECTs; remove code that used to do it in planner. That was an ancient kluge that was never satisfactory; errors should be detected at parse time when possible. But at the time we didn't have the support mechanism (expression_tree_walker et al) to make it convenient to do in the parser. --- src/include/parser/parse_agg.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/include/parser/parse_agg.h') diff --git a/src/include/parser/parse_agg.h b/src/include/parser/parse_agg.h index e836310f82..111d726bc9 100644 --- a/src/include/parser/parse_agg.h +++ b/src/include/parser/parse_agg.h @@ -1,13 +1,12 @@ /*------------------------------------------------------------------------- * * parse_agg.h - * - * + * handle aggregates in parser * * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_agg.h,v 1.24 2002/06/20 20:29:51 momjian Exp $ + * $Id: parse_agg.h,v 1.25 2003/01/17 03:25:04 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -16,6 +15,6 @@ #include "parser/parse_node.h" -extern void parseCheckAggregates(ParseState *pstate, Query *qry, Node *qual); +extern void parseCheckAggregates(ParseState *pstate, Query *qry); #endif /* PARSE_AGG_H */ -- cgit v1.2.1