From aa1a887185053e23dd2d1a78f58fd5ed8fdf5696 Mon Sep 17 00:00:00 2001
From: "Vadim B. Mikheev" <vadim4o@yahoo.com>
Date: Wed, 19 Mar 1997 07:52:03 +0000
Subject: [PATCH] Fix call to index_create in DefineIndex.

---
 src/backend/commands/defind.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/backend/commands/defind.c b/src/backend/commands/defind.c
index 4ab583e94dd..7eee417077a 100644
--- a/src/backend/commands/defind.c
+++ b/src/backend/commands/defind.c
@@ -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);
-- 
GitLab