1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-13 16:22:44 +03:00

Make attalign match type alignment.

This commit is contained in:
Bruce Momjian
1998-08-26 05:22:58 +00:00
parent 651e31bb80
commit 093beb3560
10 changed files with 5411 additions and 5346 deletions

View File

@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.53 1998/08/24 19:04:04 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/catalog/index.c,v 1.54 1998/08/26 05:22:34 momjian Exp $
*
*
* INTERFACE ROUTINES
@@ -344,8 +344,8 @@ ConstructTupleDescriptor(Oid heapoid,
if (attributeList)
{
IndexKey = (IndexElem *) lfirst(attributeList);
IndexKeyType = IndexKey->typename;
attributeList = lnext(attributeList);
IndexKeyType = IndexKey->tname;
}
else
IndexKeyType = NULL;
@@ -782,7 +782,7 @@ UpdateIndexRelation(Oid indexoid,
while (attributeList != NIL)
{
IndexKey = (IndexElem *) lfirst(attributeList);
if (IndexKey->tname != NULL)
if (IndexKey->typename != NULL)
{
indexForm->indhaskeytype = 1;
break;