mirror of
https://github.com/postgres/postgres.git
synced 2025-07-14 08:21:07 +03:00
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.
This commit is contained in:
@ -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 */
|
||||
|
Reference in New Issue
Block a user