diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-08-21 01:39:25 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-08-21 01:39:25 +0000 |
commit | f2dd89b6faae4861f3f64ff386e68dfe9c70d7ad (patch) | |
tree | 778e1208715b09032f2416af5b86ea5508097165 /src | |
parent | 25aa0f8d0431767eff8cbe14f8f00e50537a6e05 (diff) | |
download | postgresql-f2dd89b6faae4861f3f64ff386e68dfe9c70d7ad.tar.gz postgresql-f2dd89b6faae4861f3f64ff386e68dfe9c70d7ad.zip |
+ struct ConstaintDef - for constraints.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/nodes/parsenodes.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/include/nodes/parsenodes.h b/src/include/nodes/parsenodes.h index a77aa3d64e0..00c70ee9ec8 100644 --- a/src/include/nodes/parsenodes.h +++ b/src/include/nodes/parsenodes.h @@ -6,7 +6,7 @@ * * 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 */ int location; /* smgrid (-1 if none) */ int archiveLoc; /* smgrid (-1 if none) */ - List *check; /* list of CHECK constr */ + List *constraints; /* list of constraints (ConstaintDef) */ } 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 * ---------------------- |