1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-27 00:12:01 +03:00

Replace generic 'Illegal use of aggregates' error message with one that

shows the specific ungrouped variable being complained of.  Perhaps this
will reduce user confusion...
This commit is contained in:
Tom Lane
1999-12-09 05:58:56 +00:00
parent d65a27f950
commit f7f41c7c8c
6 changed files with 122 additions and 78 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: clauses.h,v 1.30 1999/09/26 02:28:44 tgl Exp $
* $Id: clauses.h,v 1.31 1999/12/09 05:58:55 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -39,8 +39,8 @@ extern List *make_ands_implicit(Expr *clause);
extern List *pull_constant_clauses(List *quals, List **constantQual);
extern List *pull_agg_clause(Node *clause);
extern bool check_subplans_for_ungrouped_vars(Node *clause,
List *groupClause,
extern void check_subplans_for_ungrouped_vars(Node *clause,
Query *query,
List *targetList);
extern void clause_get_relids_vars(Node *clause, Relids *relids, List **vars);