File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
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 $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -136,9 +136,19 @@ typedef struct CreateStmt {
136
136
ArchType archiveType ; /* archive mode (ARCH_NONE if none */
137
137
int location ; /* smgrid (-1 if none) */
138
138
int archiveLoc ; /* smgrid (-1 if none) */
139
- List * check ; /* list of CHECK constr */
139
+ List * constraints ; /* list of constraints (ConstaintDef) */
140
140
} CreateStmt ;
141
141
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
+
142
152
/* ----------------------
143
153
* Create SEQUENCE Statement
144
154
* ----------------------
You can’t perform that action at this time.
0 commit comments