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

Commite696dcc

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

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_namefunc_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_namefunc_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)

[8]ページ先頭

©2009-2025 Movatter.jp