]> granicus.if.org Git - postgresql/commitdiff
Fix call to index_create in DefineIndex.
authorVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 19 Mar 1997 07:52:03 +0000 (07:52 +0000)
committerVadim B. Mikheev <vadim4o@yahoo.com>
Wed, 19 Mar 1997 07:52:03 +0000 (07:52 +0000)
src/backend/commands/defind.c

index 4ab583e94ddbfe9f60b8e18485541b1daeba2ae2..7eee417077ac1015689eef6494894d25739f7289 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.10 1997/01/18 05:48:07 momjian Exp $
+ *    $Header: /cvsroot/pgsql/src/backend/commands/Attic/defind.c,v 1.11 1997/03/19 07:52:03 vadim Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -193,7 +193,7 @@ DefineIndex(char *heapRelationName,
                       classObjectId, relationId);
        
        index_create(heapRelationName, indexRelationName, NULL,
-                    ((IndexElem*)lfirst(attributeList))->tname,
+                    attributeList,
                     accessMethodId, numberOfAttributes, attributeNumberA,
                     classObjectId, parameterCount, parameterA, (Node*)cnfPred,
                     lossy, unique);