1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-10 17:42:29 +03:00

UPDATE ... SET <col> = DEFAULT

Rod Taylor
This commit is contained in:
Bruce Momjian
2003-06-25 04:19:24 +00:00
parent a09ccc70dd
commit 53c4f1233f
9 changed files with 90 additions and 49 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.254 2003/06/25 03:40:17 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.255 2003/06/25 04:19:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1661,10 +1661,10 @@ _copyFuncWithArgs(FuncWithArgs *from)
return newnode;
}
static InsertDefault *
_copyInsertDefault(InsertDefault *from)
static SetToDefault *
_copySetToDefault(SetToDefault *from)
{
InsertDefault *newnode = makeNode(InsertDefault);
SetToDefault *newnode = makeNode(SetToDefault);
return newnode;
}
@@ -2942,8 +2942,8 @@ copyObject(void *from)
case T_FuncWithArgs:
retval = _copyFuncWithArgs(from);
break;
case T_InsertDefault:
retval = _copyInsertDefault(from);
case T_SetToDefault:
retval = _copySetToDefault(from);
break;
default:

View File

@@ -18,7 +18,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.197 2003/06/25 03:40:17 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/nodes/equalfuncs.c,v 1.198 2003/06/25 04:19:24 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -728,7 +728,7 @@ _equalFuncWithArgs(FuncWithArgs *a, FuncWithArgs *b)
}
static bool
_equalInsertDefault(InsertDefault *a, InsertDefault *b)
_equalSetToDefault(SetToDefault *a, SetToDefault *b)
{
return true;
}
@@ -2055,8 +2055,8 @@ equal(void *a, void *b)
case T_FuncWithArgs:
retval = _equalFuncWithArgs(a, b);
break;
case T_InsertDefault:
retval = _equalInsertDefault(a, b);
case T_SetToDefault:
retval = _equalSetToDefault(a, b);
break;
default: