Skip to content

Commit e696dcc

Browse files
committed
Move function_with_argtypes to a better location
It was apparently added for use by GRANT/REVOKE, but move it closer to where other function signature related things are kept. Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
1 parent 0aff929 commit e696dcc

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/backend/parser/gram.y

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6533,22 +6533,6 @@ opt_grant_grant_option:
65336533
| /*EMPTY*/ { $$ = FALSE; }
65346534
;
65356535

6536-
function_with_argtypes_list:
6537-
function_with_argtypes { $$ = list_make1($1); }
6538-
| function_with_argtypes_list ',' function_with_argtypes
6539-
{ $$ = lappend($1, $3); }
6540-
;
6541-
6542-
function_with_argtypes:
6543-
func_name func_args
6544-
{
6545-
FuncWithArgs *n = makeNode(FuncWithArgs);
6546-
n->funcname = $1;
6547-
n->funcargs = extractArgTypes($2);
6548-
$$ = n;
6549-
}
6550-
;
6551-
65526536
/*****************************************************************************
65536537
*
65546538
* GRANT and REVOKE ROLE statements
@@ -6901,6 +6885,22 @@ func_args_list:
69016885
| func_args_list ',' func_arg { $$ = lappend($1, $3); }
69026886
;
69036887

6888+
function_with_argtypes_list:
6889+
function_with_argtypes { $$ = list_make1($1); }
6890+
| function_with_argtypes_list ',' function_with_argtypes
6891+
{ $$ = lappend($1, $3); }
6892+
;
6893+
6894+
function_with_argtypes:
6895+
func_name func_args
6896+
{
6897+
FuncWithArgs *n = makeNode(FuncWithArgs);
6898+
n->funcname = $1;
6899+
n->funcargs = extractArgTypes($2);
6900+
$$ = n;
6901+
}
6902+
;
6903+
69046904
/*
69056905
* func_args_with_defaults is separate because we only want to accept
69066906
* defaults in CREATE FUNCTION, not in ALTER etc.

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