1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Fix missing lfirst() in ListTableAsAttrs(). This code

doesn't seem to be used at the moment, but as long as I'm looking at it...
This commit is contained in:
Tom Lane
2000-02-15 23:09:08 +00:00
parent b1577a7c78
commit 90e160beff

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.53 2000/02/15 07:47:37 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.54 2000/02/15 23:09:08 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -172,14 +172,13 @@ ListTableAsAttrs(ParseState *pstate, char *table);
List * List *
ListTableAsAttrs(ParseState *pstate, char *table) ListTableAsAttrs(ParseState *pstate, char *table)
{ {
List *rlist = NULL; Attr *attr = expandTable(pstate, table, TRUE);
List *rlist = NIL;
List *col; List *col;
Attr *attr = expandTable(pstate, table, TRUE);
foreach(col, attr->attrs) foreach(col, attr->attrs)
{ {
Attr *a; Attr *a = makeAttr(table, strVal((Value *) lfirst(col)));
a = makeAttr(table, strVal((Value *) col));
rlist = lappend(rlist, a); rlist = lappend(rlist, a);
} }