mirror of
https://github.com/postgres/postgres.git
synced 2025-11-03 09:13:20 +03:00
AttrConstr --> TupleConstr
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.12 1997/08/19 04:43:30 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.13 1997/08/21 04:05:22 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -276,7 +276,7 @@ MergeAttributes(List *schema, List *supers)
|
||||
AttributeTupleForm attribute = tupleDesc->attrs[attrno];
|
||||
char *attributeName;
|
||||
char *attributeType;
|
||||
AttrConstr constraints;
|
||||
TupleConstr constraints;
|
||||
HeapTuple tuple;
|
||||
ColumnDef *def;
|
||||
TypeName *typename;
|
||||
|
||||
4
src/backend/utils/cache/relcache.c
vendored
4
src/backend/utils/cache/relcache.c
vendored
@@ -7,7 +7,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.17 1997/08/21 01:36:09 vadim Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.18 1997/08/21 04:09:51 vadim Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -500,7 +500,7 @@ RelationBuildTupleDesc(RelationBuildDescInfo buildinfo,
|
||||
build_tupdesc_seq(buildinfo, relation, natts);
|
||||
else
|
||||
{
|
||||
relation->rd_att->constr = (AttrConstr *) palloc(sizeof(struct attrConstr));
|
||||
relation->rd_att->constr = (TupleConstr *) palloc(sizeof(TupleConstr));
|
||||
relation->rd_att->constr->num_check = 0;
|
||||
relation->rd_att->constr->num_defval = 0;
|
||||
relation->rd_att->constr->has_not_null = false;
|
||||
|
||||
Reference in New Issue
Block a user