mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Includes:
- LIKE <subtable> [ INCLUDING DEFAULTS | EXCLUDING DEFAULTS ] - Quick cleanup of analyze.c function prototypes. - New non-reserved keywords (INCLUDING, EXCLUDING, DEFAULTS), SQL 200X Opted not to extend for check constraints at this time. As per the definition that it's user defined columns, OIDs are NOT inherited. Doc and Source patches attached. -- Rod Taylor <rbt@rbt.ca>
This commit is contained in:
@@ -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.253 2003/06/24 23:14:43 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/nodes/copyfuncs.c,v 1.254 2003/06/25 03:40:17 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1731,6 +1731,17 @@ _copyCreateStmt(CreateStmt *from)
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static InhRelation *
|
||||
_copyInhRelation(InhRelation *from)
|
||||
{
|
||||
InhRelation *newnode = makeNode(InhRelation);
|
||||
|
||||
COPY_NODE_FIELD(relation);
|
||||
COPY_SCALAR_FIELD(including_defaults);
|
||||
|
||||
return newnode;
|
||||
}
|
||||
|
||||
static DefineStmt *
|
||||
_copyDefineStmt(DefineStmt *from)
|
||||
{
|
||||
@@ -2693,6 +2704,9 @@ copyObject(void *from)
|
||||
case T_CreateStmt:
|
||||
retval = _copyCreateStmt(from);
|
||||
break;
|
||||
case T_InhRelation:
|
||||
retval = _copyInhRelation(from);
|
||||
break;
|
||||
case T_DefineStmt:
|
||||
retval = _copyDefineStmt(from);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user