mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Fix various infelicities in node functions.
Mostly, this consists of adding support for fields which exist in the structure but aren't handled by copy/equal/outfuncs; but the create foreign table case can actually produce garbage output. Noah Misch
This commit is contained in:
@ -2891,6 +2891,7 @@ _copyRenameStmt(const RenameStmt *from)
|
||||
RenameStmt *newnode = makeNode(RenameStmt);
|
||||
|
||||
COPY_SCALAR_FIELD(renameType);
|
||||
COPY_SCALAR_FIELD(relationType);
|
||||
COPY_NODE_FIELD(relation);
|
||||
COPY_NODE_FIELD(object);
|
||||
COPY_NODE_FIELD(objarg);
|
||||
@ -3047,6 +3048,7 @@ _copyViewStmt(const ViewStmt *from)
|
||||
COPY_NODE_FIELD(aliases);
|
||||
COPY_NODE_FIELD(query);
|
||||
COPY_SCALAR_FIELD(replace);
|
||||
COPY_NODE_FIELD(options);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
Reference in New Issue
Block a user