@@ -5414,21 +5414,21 @@ opclass_item:
5414
5414
n->order_family = $5 ;
5415
5415
$$ = (Node *) n;
5416
5416
}
5417
- | FUNCTION Iconst func_name func_args
5417
+ | FUNCTION Iconst function_with_argtypes
5418
5418
{
5419
5419
CreateOpClassItem *n = makeNode(CreateOpClassItem);
5420
5420
n->itemtype = OPCLASS_ITEM_FUNCTION;
5421
- n->name = $3 ;
5422
- n->args = extractArgTypes( $4 ) ;
5421
+ n->name = $3 ->funcname ;
5422
+ n->args = $3 ->funcargs ;
5423
5423
n->number = $2 ;
5424
5424
$$ = (Node *) n;
5425
5425
}
5426
- | FUNCTION Iconst ' (' type_list ' )' func_name func_args
5426
+ | FUNCTION Iconst ' (' type_list ' )' function_with_argtypes
5427
5427
{
5428
5428
CreateOpClassItem *n = makeNode(CreateOpClassItem);
5429
5429
n->itemtype = OPCLASS_ITEM_FUNCTION;
5430
- n->name = $6 ;
5431
- n->args = extractArgTypes( $7 ) ;
5430
+ n->name = $6 ->funcname ;
5431
+ n->args = $6 ->funcargs ;
5432
5432
n->number = $2 ;
5433
5433
n->class_args = $4 ;
5434
5434
$$ = (Node *) n;
@@ -5828,13 +5828,13 @@ CommentStmt:
5828
5828
n->comment = $7 ;
5829
5829
$$ = (Node *) n;
5830
5830
}
5831
- | COMMENT ON FUNCTION func_name func_args IS comment_text
5831
+ | COMMENT ON FUNCTION function_with_argtypes IS comment_text
5832
5832
{
5833
5833
CommentStmt *n = makeNode(CommentStmt);
5834
5834
n->objtype = OBJECT_FUNCTION;
5835
- n->objname = $4 ;
5836
- n->objargs = extractArgTypes( $5 ) ;
5837
- n->comment = $7 ;
5835
+ n->objname = $4 ->funcname ;
5836
+ n->objargs = $4 ->funcargs ;
5837
+ n->comment = $6 ;
5838
5838
$$ = (Node *) n;
5839
5839
}
5840
5840
| COMMENT ON OPERATOR any_operator oper_argtypes IS comment_text
@@ -6046,15 +6046,15 @@ SecLabelStmt:
6046
6046
n->label = $9 ;
6047
6047
$$ = (Node *) n;
6048
6048
}
6049
- | SECURITY LABEL opt_provider ON FUNCTION func_name func_args
6049
+ | SECURITY LABEL opt_provider ON FUNCTION function_with_argtypes
6050
6050
IS security_label
6051
6051
{
6052
6052
SecLabelStmt *n = makeNode(SecLabelStmt);
6053
6053
n->provider = $3 ;
6054
6054
n->objtype = OBJECT_FUNCTION;
6055
- n->objname = $6 ;
6056
- n->objargs = extractArgTypes( $7 ) ;
6057
- n->label = $9 ;
6055
+ n->objname = $6 ->funcname ;
6056
+ n->objargs = $6 ->funcargs ;
6057
+ n->label = $8 ;
6058
6058
$$ = (Node *) n;
6059
6059
}
6060
6060
| SECURITY LABEL opt_provider ON LARGE_P OBJECT_P NumericOnly
@@ -7284,24 +7284,24 @@ opt_restrict:
7284
7284
*****************************************************************************/
7285
7285
7286
7286
RemoveFuncStmt :
7287
- DROP FUNCTION func_name func_args opt_drop_behavior
7287
+ DROP FUNCTION function_with_argtypes opt_drop_behavior
7288
7288
{
7289
7289
DropStmt *n = makeNode(DropStmt);
7290
7290
n->removeType = OBJECT_FUNCTION;
7291
- n->objects = list_make1($3 );
7292
- n->arguments = list_make1(extractArgTypes( $4 ) );
7293
- n->behavior = $5 ;
7291
+ n->objects = list_make1($3 ->funcname );
7292
+ n->arguments = list_make1($3 ->funcargs );
7293
+ n->behavior = $4 ;
7294
7294
n->missing_ok = false ;
7295
7295
n->concurrent = false ;
7296
7296
$$ = (Node *)n;
7297
7297
}
7298
- | DROP FUNCTION IF_P EXISTS func_name func_args opt_drop_behavior
7298
+ | DROP FUNCTION IF_P EXISTS function_with_argtypes opt_drop_behavior
7299
7299
{
7300
7300
DropStmt *n = makeNode(DropStmt);
7301
7301
n->removeType = OBJECT_FUNCTION;
7302
- n->objects = list_make1($5 );
7303
- n->arguments = list_make1(extractArgTypes( $6 ) );
7304
- n->behavior = $7 ;
7302
+ n->objects = list_make1($5 ->funcname );
7303
+ n->arguments = list_make1($5 ->funcargs );
7304
+ n->behavior = $6 ;
7305
7305
n->missing_ok = true ;
7306
7306
n->concurrent = false ;
7307
7307
$$ = (Node *)n;
0 commit comments