diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 1999-12-10 07:37:35 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 1999-12-10 07:37:35 +0000 |
| commit | 18c30002863a1a4d2c2f0da6d245f106586bc686 (patch) | |
| tree | b417e01845965594239b0f8944e1baf00688b12e /src/include/parser/parse_agg.h | |
| parent | ecba5d308ca92d3a4fd0725c200452007217991b (diff) | |
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'.
Diffstat (limited to 'src/include/parser/parse_agg.h')
| -rw-r--r-- | src/include/parser/parse_agg.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/parser/parse_agg.h b/src/include/parser/parse_agg.h index f1b400e9c9a..cd149e1517b 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 */ |
