1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Add INSERT(..., DEFAULT, ).

Rod Taylor
This commit is contained in:
Bruce Momjian
2002-04-05 11:56:55 +00:00
parent aab0b8f5eb
commit 97b4e5ad30
11 changed files with 123 additions and 16 deletions

View File

@ -15,7 +15,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.174 2002/03/29 19:06:08 tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.175 2002/04/05 11:56:48 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -1947,6 +1947,15 @@ _copyFuncWithArgs(FuncWithArgs *from)
return newnode;
}
static InsertDefault *
_copyInsertDefault(InsertDefault *from)
{
InsertDefault *newnode = makeNode(InsertDefault);
return newnode;
}
static ClosePortalStmt *
_copyClosePortalStmt(ClosePortalStmt *from)
{
@ -3055,6 +3064,9 @@ copyObject(void *from)
case T_FuncWithArgs:
retval = _copyFuncWithArgs(from);
break;
case T_InsertDefault:
retval = _copyInsertDefault(from);
break;
default:
elog(ERROR, "copyObject: don't know how to copy node type %d",