aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-02-19 19:37:21 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-02-19 19:37:21 +0000
commitbd43ae0ecd607a22c321df57366c4b900e4e9c0f (patch)
treee4566600d65fd10e10bb2658d480491337c23c94 /src
parent63746a90c137576be424e049bc83d7598da7ec58 (diff)
downloadpostgresql-bd43ae0ecd607a22c321df57366c4b900e4e9c0f.tar.gz
postgresql-bd43ae0ecd607a22c321df57366c4b900e4e9c0f.zip
Accept the noise-word ALL in aggregate function invocations for SQL92
compliance. Wish they were all that easy...
Diffstat (limited to 'src')
-rw-r--r--src/backend/parser/gram.y15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 6e690200186..a2c2d93547b 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.145 2000/02/19 08:25:49 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.146 2000/02/19 19:37:21 tgl Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
@@ -4546,6 +4546,19 @@ c_expr: attr
n->agg_distinct = false;
$$ = (Node *)n;
}
+ | func_name '(' ALL expr_list ')'
+ {
+ FuncCall *n = makeNode(FuncCall);
+ n->funcname = $1;
+ n->args = $4;
+ n->agg_star = false;
+ n->agg_distinct = false;
+ /* Ideally we'd mark the FuncCall node to indicate
+ * "must be an aggregate", but there's no provision
+ * for that in FuncCall at the moment.
+ */
+ $$ = (Node *)n;
+ }
| func_name '(' DISTINCT expr_list ')'
{
FuncCall *n = makeNode(FuncCall);