Skip to content

Commit f2dd89b

Browse files
committed
+ struct ConstaintDef - for constraints.
1 parent 25aa0f8 commit f2dd89b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/include/nodes/parsenodes.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* Copyright (c) 1994, Regents of the University of California
88
*
9-
* $Id: parsenodes.h,v 1.18 1997/08/20 01:12:38 vadim Exp $
9+
* $Id: parsenodes.h,v 1.19 1997/08/21 01:39:25 vadim Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -136,9 +136,19 @@ typedef struct CreateStmt {
136136
ArchType archiveType; /* archive mode (ARCH_NONE if none */
137137
int location; /* smgrid (-1 if none) */
138138
int archiveLoc; /* smgrid (-1 if none) */
139-
List *check; /* list of CHECK constr */
139+
List *constraints; /* list of constraints (ConstaintDef) */
140140
} CreateStmt;
141141

142+
typedef enum ConstrType {
143+
CONSTR_NONE, CONSTR_CHECK /* type of constaints */
144+
} ConstrType;
145+
146+
typedef struct ConstaintDef {
147+
ConstrType type;
148+
char *name; /* name */
149+
char *expr; /* */
150+
} ConstaintDef;
151+
142152
/* ----------------------
143153
* Create SEQUENCE Statement
144154
* ----------------------

0 commit comments

Comments
 (0)