1
0
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:
Robert Haas
2012-04-18 10:43:16 -04:00
parent 37e666b8b5
commit 53bbc681ca
3 changed files with 19 additions and 5 deletions

View File

@ -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;
}