Commit 5c5ffee8 authored by Alvaro Herrera's avatar Alvaro Herrera

Fix get_object_address argument type for extension statement

Commit 3f88672a 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.
parent 1f9bf05e
......@@ -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;
}
;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment