Skip to content

Commit bd43ae0

Browse files
committed
Accept the noise-word ALL in aggregate function invocations for SQL92
compliance. Wish they were all that easy...
1 parent 63746a9 commit bd43ae0

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/backend/parser/gram.y

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.145 2000/02/19 08:25:49 thomas Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.146 2000/02/19 19:37:21 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHOR DATE MAJOR EVENT
@@ -4546,6 +4546,19 @@ c_expr: attr
45464546
n->agg_distinct = false;
45474547
$$ = (Node *)n;
45484548
}
4549+
| func_name '(' ALL expr_list ')'
4550+
{
4551+
FuncCall *n = makeNode(FuncCall);
4552+
n->funcname = $1;
4553+
n->args = $4;
4554+
n->agg_star = false;
4555+
n->agg_distinct = false;
4556+
/* Ideally we'd mark the FuncCall node to indicate
4557+
* "must be an aggregate", but there's no provision
4558+
* for that in FuncCall at the moment.
4559+
*/
4560+
$$ = (Node *)n;
4561+
}
45494562
| func_name '(' DISTINCT expr_list ')'
45504563
{
45514564
FuncCall *n = makeNode(FuncCall);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy