+ struct ConstaintDef - for constraints.
This commit is contained in:
parent
25aa0f8d04
commit
f2dd89b6fa
@ -6,7 +6,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* $Id: parsenodes.h,v 1.18 1997/08/20 01:12:38 vadim Exp $
|
* $Id: parsenodes.h,v 1.19 1997/08/21 01:39:25 vadim Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -136,9 +136,19 @@ typedef struct CreateStmt {
|
|||||||
ArchType archiveType; /* archive mode (ARCH_NONE if none */
|
ArchType archiveType; /* archive mode (ARCH_NONE if none */
|
||||||
int location; /* smgrid (-1 if none) */
|
int location; /* smgrid (-1 if none) */
|
||||||
int archiveLoc; /* smgrid (-1 if none) */
|
int archiveLoc; /* smgrid (-1 if none) */
|
||||||
List *check; /* list of CHECK constr */
|
List *constraints; /* list of constraints (ConstaintDef) */
|
||||||
} CreateStmt;
|
} CreateStmt;
|
||||||
|
|
||||||
|
typedef enum ConstrType {
|
||||||
|
CONSTR_NONE, CONSTR_CHECK /* type of constaints */
|
||||||
|
} ConstrType;
|
||||||
|
|
||||||
|
typedef struct ConstaintDef {
|
||||||
|
ConstrType type;
|
||||||
|
char *name; /* name */
|
||||||
|
char *expr; /* */
|
||||||
|
} ConstaintDef;
|
||||||
|
|
||||||
/* ----------------------
|
/* ----------------------
|
||||||
* Create SEQUENCE Statement
|
* Create SEQUENCE Statement
|
||||||
* ----------------------
|
* ----------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user