diff options
| author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-08-19 04:46:15 +0000 |
|---|---|---|
| committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-08-19 04:46:15 +0000 |
| commit | b992e200b8872ecb6652ec85111995f8d4c5aee0 (patch) | |
| tree | 52ce3eed9d36e779fe3fa729c12757b13a521b56 /src/include/access/tupdesc.h | |
| parent | b99c63cfc029cc0552e98f652d1734aec1124a5b (diff) | |
| download | postgresql-b992e200b8872ecb6652ec85111995f8d4c5aee0.tar.gz | |
NOT NULL implementation (submitted by Robson Paniago de Miranda).
Diffstat (limited to 'src/include/access/tupdesc.h')
| -rw-r--r-- | src/include/access/tupdesc.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/include/access/tupdesc.h b/src/include/access/tupdesc.h index 34d57b70e9..cad6d01abe 100644 --- a/src/include/access/tupdesc.h +++ b/src/include/access/tupdesc.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: tupdesc.h,v 1.5 1996/11/04 07:45:28 scrappy Exp $ + * $Id: tupdesc.h,v 1.6 1997/08/19 04:45:20 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -17,6 +17,13 @@ #include <access/attnum.h> #include <catalog/pg_attribute.h> +typedef struct attrConstr { +/*------------------------------------------------------------------------ + This structure contains flags to the constraints of a tuple + ------------------------------------------------------------------------*/ + bool has_not_null; +} AttrConstr; + typedef struct tupleDesc { /*------------------------------------------------------------------------ This structure contains all the attribute information (i.e. from Class @@ -26,6 +33,7 @@ typedef struct tupleDesc { /* Number of attributes in the tuple */ AttributeTupleForm *attrs; /* attrs[N] is a pointer to the description of Attribute Number N+1. */ + AttrConstr *constr; } *TupleDesc; extern TupleDesc CreateTemplateTupleDesc(int natts); |
