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/backend/nodes/outfuncs.c | |
parent | ecba5d308ca92d3a4fd0725c200452007217991b (diff) | |
download | postgresql-18c30002863a1a4d2c2f0da6d245f106586bc686.tar.gz postgresql-18c30002863a1a4d2c2f0da6d245f106586bc686.zip |
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/backend/nodes/outfuncs.c')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 789faad772c..78bda61b30f 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -5,7 +5,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: outfuncs.c,v 1.98 1999/11/23 20:06:53 momjian Exp $ + * $Id: outfuncs.c,v 1.99 1999/12/10 07:37:31 tgl Exp $ * * NOTES * Every (plan) node in POSTGRES has an associated "out" routine which @@ -114,8 +114,12 @@ _outSelectStmt(StringInfo str, SelectStmt *node) static void _outFuncCall(StringInfo str, FuncCall *node) { - appendStringInfo(str, "FUNCTION %s :args ", stringStringInfo(node->funcname)); + appendStringInfo(str, "FUNCTION %s :args ", + stringStringInfo(node->funcname)); _outNode(str, node->args); + appendStringInfo(str, " :agg_star %s :agg_distinct %s ", + node->agg_star ? "true" : "false", + node->agg_distinct ? "true" : "false"); } static void |