From 18c30002863a1a4d2c2f0da6d245f106586bc686 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 10 Dec 1999 07:37:35 +0000 Subject: Teach grammar and parser about aggregate(DISTINCT ...). No implementation yet, but at least we can give a better error message: regression=> select count(distinct f1) from int4_tbl; ERROR: aggregate(DISTINCT ...) is not implemented yet instead of 'parser: parse error at or near distinct'. --- src/include/parser/parse_agg.h | 5 +++-- 1 file changed, 3 insertions(+), 2 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 f1b400e9c9..cd149e1517 100644 --- a/src/include/parser/parse_agg.h +++ b/src/include/parser/parse_agg.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_agg.h,v 1.12 1999/07/15 23:04:01 momjian Exp $ + * $Id: parse_agg.h,v 1.13 1999/12/10 07:37:33 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,7 +18,8 @@ extern void AddAggToParseState(ParseState *pstate, Aggref *aggref); extern void parseCheckAggregates(ParseState *pstate, Query *qry); extern Aggref *ParseAgg(ParseState *pstate, char *aggname, Oid basetype, - List *target, int precedence); + List *args, bool agg_star, bool agg_distinct, + int precedence); extern void agg_error(char *caller, char *aggname, Oid basetypeID); #endif /* PARSE_AGG_H */ -- cgit v1.2.1