diff options
Diffstat (limited to 'src/backend/commands/creatinh.c')
-rw-r--r-- | src/backend/commands/creatinh.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/backend/commands/creatinh.c b/src/backend/commands/creatinh.c index 839042ab538..61083a5637f 100644 --- a/src/backend/commands/creatinh.c +++ b/src/backend/commands/creatinh.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.38 1999/02/02 03:44:19 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/Attic/creatinh.c,v 1.39 1999/02/03 21:16:03 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -275,13 +275,11 @@ MergeAttributes(List *schema, List *supers, List **supconstr) * form name, type and constraints */ attributeName = (attribute->attname).data; - tuple = - SearchSysCacheTuple(TYPOID, + tuple = SearchSysCacheTuple(TYPOID, ObjectIdGetDatum(attribute->atttypid), 0, 0, 0); Assert(HeapTupleIsValid(tuple)); - attributeType = - (((Form_pg_type) GETSTRUCT(tuple))->typname).data; + attributeType = (((Form_pg_type) GETSTRUCT(tuple))->typname).data; /* * check validity @@ -468,8 +466,7 @@ StoreCatalogInheritance(Oid relationId, List *supers) if (!HeapTupleIsValid(tuple)) break; - lnext(current) = - lconsi(((Form_pg_inherits) + lnext(current) = lconsi(((Form_pg_inherits) GETSTRUCT(tuple))->inhparent, NIL); |