|
8 | 8 | * |
9 | 9 | * |
10 | 10 | * IDENTIFICATION |
11 | | - * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.53 2000/02/1507:47:37 tgl Exp $ |
| 11 | + * $Header: /cvsroot/pgsql/src/backend/parser/parse_clause.c,v 1.54 2000/02/1523:09:08 tgl Exp $ |
12 | 12 | * |
13 | 13 | *------------------------------------------------------------------------- |
14 | 14 | */ |
@@ -172,14 +172,13 @@ ListTableAsAttrs(ParseState *pstate, char *table); |
172 | 172 | List* |
173 | 173 | ListTableAsAttrs(ParseState*pstate,char*table) |
174 | 174 | { |
175 | | -List*rlist=NULL; |
| 175 | +Attr*attr=expandTable(pstate,table, TRUE); |
| 176 | +List*rlist=NIL; |
176 | 177 | List*col; |
177 | 178 |
|
178 | | -Attr*attr=expandTable(pstate,table, TRUE); |
179 | 179 | foreach(col,attr->attrs) |
180 | 180 | { |
181 | | -Attr*a; |
182 | | -a=makeAttr(table,strVal((Value*)col)); |
| 181 | +Attr*a=makeAttr(table,strVal((Value*)lfirst(col))); |
183 | 182 | rlist=lappend(rlist,a); |
184 | 183 | } |
185 | 184 |
|
|