|
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 | ArchTypearchiveType;/* archive mode (ARCH_NONE if none */
|
137 | 137 | intlocation;/* smgrid (-1 if none) */
|
138 | 138 | intarchiveLoc;/* smgrid (-1 if none) */
|
139 |
| -List*check;/* list ofCHECK constr */ |
| 139 | +List*constraints;/* list ofconstraints (ConstaintDef) */ |
140 | 140 | }CreateStmt;
|
141 | 141 |
|
| 142 | +typedefenumConstrType { |
| 143 | +CONSTR_NONE,CONSTR_CHECK/* type of constaints */ |
| 144 | +}ConstrType; |
| 145 | + |
| 146 | +typedefstructConstaintDef { |
| 147 | +ConstrTypetype; |
| 148 | +char*name;/* name */ |
| 149 | +char*expr;/* */ |
| 150 | +}ConstaintDef; |
| 151 | + |
142 | 152 | /* ----------------------
|
143 | 153 | *Create SEQUENCE Statement
|
144 | 154 | * ----------------------
|
|