Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd43ae0

Browse files
committed
Accept the noise-word ALL in aggregate function invocations for SQL92
compliance. Wish they were all that easy...
1 parent63746a9 commitbd43ae0

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/1908:25:49 thomas Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.146 2000/02/1919:37:21 tgl Exp $
1515
*
1616
* HISTORY
1717
* AUTHORDATEMAJOR EVENT
@@ -4546,6 +4546,19 @@ c_expr: attr
45464546
n->agg_distinct =false;
45474547
$$ = (Node *)n;
45484548
}
4549+
|func_name'('ALLexpr_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'('DISTINCTexpr_list')'
45504563
{
45514564
FuncCall *n = makeNode(FuncCall);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp