mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
Fix get_object_address argument type for extension statement
Commit 3f88672a4
neglected to update the AlterExtensionContentsStmt
production in the grammar to use TypeName to represent types when
passing objects to get_object_address.
Reported as a pg_upgrade failure by Jeff Janes.
This commit is contained in:
parent
1f9bf05e53
commit
5c5ffee80f
@ -3907,13 +3907,13 @@ AlterExtensionContentsStmt:
|
||||
n->objname = $6;
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
| ALTER EXTENSION name add_drop DOMAIN_P any_name
|
||||
| ALTER EXTENSION name add_drop DOMAIN_P Typename
|
||||
{
|
||||
AlterExtensionContentsStmt *n = makeNode(AlterExtensionContentsStmt);
|
||||
n->extname = $3;
|
||||
n->action = $4;
|
||||
n->objtype = OBJECT_DOMAIN;
|
||||
n->objname = $6;
|
||||
n->objname = list_make1($6);
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
| ALTER EXTENSION name add_drop FUNCTION function_with_argtypes
|
||||
@ -4082,13 +4082,13 @@ AlterExtensionContentsStmt:
|
||||
n->objname = list_make1(makeString($6));
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
| ALTER EXTENSION name add_drop TYPE_P any_name
|
||||
| ALTER EXTENSION name add_drop TYPE_P Typename
|
||||
{
|
||||
AlterExtensionContentsStmt *n = makeNode(AlterExtensionContentsStmt);
|
||||
n->extname = $3;
|
||||
n->action = $4;
|
||||
n->objtype = OBJECT_TYPE;
|
||||
n->objname = $6;
|
||||
n->objname = list_make1($6);
|
||||
$$ = (Node *)n;
|
||||
}
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user