diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 8e1dc4a4efeb7b88edb8fb1bb591b0e4a8ac4ab4..d8822bdebc577647574c1d3d76c1622acf96548f 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.50 1997/09/24 17:53:53 thomas Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.51 1997/09/25 14:11:42 thomas Exp $
  *
  * HISTORY
  *	  AUTHOR			DATE			MAJOR EVENT
@@ -3274,7 +3274,8 @@ void parser_init(Oid *typev, int nargs)
 static char *
 FlattenStringList(List *list)
 {
-	List *l, *lp;
+	List *l;
+	Value *v;
 	char *s;
 	char *sp;
 	int nlist, len = 0;
@@ -3285,8 +3286,8 @@ printf( "list has %d elements\n", nlist);
 #endif
 	l = list;
 	while(l != NIL) {
-		lp = lfirst(l);
-		sp = (char *)(lp->elem.ptr_value);
+		v = (Value *)lfirst(l);
+		sp = v->val.str;
 		l = lnext(l);
 #ifdef PARSEDEBUG
 printf( "sp is x%8p; length of %s is %d\n", sp, sp, strlen(sp));
@@ -3300,8 +3301,8 @@ printf( "sp is x%8p; length of %s is %d\n", sp, sp, strlen(sp));
 
 	l = list;
 	while(l != NIL) {
-		lp = lfirst(l);
-		sp = (char *)(lp->elem.ptr_value);
+		v = (Value *)lfirst(l);
+		sp = v->val.str;
 		l = lnext(l);
 #ifdef PARSEDEBUG
 printf( "length of %s is %d\n", sp, strlen(sp));