diff options
Diffstat (limited to 'src/backend/nodes/copyfuncs.c')
| -rw-r--r-- | src/backend/nodes/copyfuncs.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 18a8a369e6..b47c51e462 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/src/backend/nodes/copyfuncs.c @@ -15,7 +15,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.274 2004/01/06 04:31:01 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/nodes/copyfuncs.c,v 1.275 2004/01/06 23:55:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1878,7 +1878,7 @@ _copyCreateFunctionStmt(CreateFunctionStmt *from) COPY_SCALAR_FIELD(replace); COPY_NODE_FIELD(funcname); - COPY_NODE_FIELD(argTypes); + COPY_NODE_FIELD(parameters); COPY_NODE_FIELD(returnType); COPY_NODE_FIELD(options); COPY_NODE_FIELD(withClause); @@ -1886,6 +1886,17 @@ _copyCreateFunctionStmt(CreateFunctionStmt *from) return newnode; } +static FunctionParameter * +_copyFunctionParameter(FunctionParameter *from) +{ + FunctionParameter *newnode = makeNode(FunctionParameter); + + COPY_STRING_FIELD(name); + COPY_NODE_FIELD(argType); + + return newnode; +} + static RemoveAggrStmt * _copyRemoveAggrStmt(RemoveAggrStmt *from) { @@ -2788,6 +2799,9 @@ copyObject(void *from) case T_CreateFunctionStmt: retval = _copyCreateFunctionStmt(from); break; + case T_FunctionParameter: + retval = _copyFunctionParameter(from); + break; case T_RemoveAggrStmt: retval = _copyRemoveAggrStmt(from); break; |
