aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common/tupdesc.c
diff options
context:
space:
mode:
authorVadim B. Mikheev <vadim4o@yahoo.com>1997-08-21 04:10:25 +0000
committerVadim B. Mikheev <vadim4o@yahoo.com>1997-08-21 04:10:25 +0000
commitcc332d612b4460e1345c65dfa5b543a74216c3ef (patch)
treebc506c5e0199d592f511ed7f008fcc5ca52e9242 /src/backend/access/common/tupdesc.c
parente4824629603a3daaa9ff6acab86e2c89f0b532cd (diff)
downloadpostgresql-cc332d612b4460e1345c65dfa5b543a74216c3ef.tar.gz
postgresql-cc332d612b4460e1345c65dfa5b543a74216c3ef.zip
AttrConstr --> TupleConstr
Diffstat (limited to 'src/backend/access/common/tupdesc.c')
-rw-r--r--src/backend/access/common/tupdesc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/access/common/tupdesc.c b/src/backend/access/common/tupdesc.c
index a8671f94327..6414ff036e0 100644
--- a/src/backend/access/common/tupdesc.c
+++ b/src/backend/access/common/tupdesc.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.16 1997/08/21 03:01:15 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/backend/access/common/tupdesc.c,v 1.17 1997/08/21 04:03:34 vadim Exp $
*
* NOTES
* some of the executor utility code such as "ExecTypeFromTL" should be
@@ -119,8 +119,8 @@ CreateTupleDescCopy(TupleDesc tupdesc)
ATTRIBUTE_TUPLE_SIZE);
}
if (tupdesc->constr) {
- desc->constr = (AttrConstr *) palloc(sizeof(struct attrConstr));
- memmove(desc->constr, tupdesc->constr, sizeof(struct attrConstr));
+ desc->constr = (TupleConstr *) palloc(sizeof(TupleConstr));
+ memmove(desc->constr, tupdesc->constr, sizeof(TupleConstr));
} else
desc->constr = NULL;
return desc;
@@ -179,7 +179,7 @@ TupleDescInitEntry(TupleDesc desc,
memset(att->attname.data,0,NAMEDATALEN);
- att->attdisbursion = 0; /* dummy value */
+ att->attnvals = 0; /* dummy value */
att->attcacheoff = -1;
att->attnum = attributeNumber;
@@ -387,7 +387,7 @@ BuildDescForRelation(List *schema, char *relname)
/* This is for constraints */
if (entry->is_not_null) {
if (!desc->constr)
- desc->constr = (AttrConstr *) palloc(sizeof(struct attrConstr));
+ desc->constr = (TupleConstr *) palloc(sizeof(TupleConstr));
desc->constr->has_not_null = true;
}
desc->attrs[attnum-1]->attnotnull = entry->is_not_null;