Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90e160b

Browse files
committed
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...
1 parentb1577a7 commit90e160b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/backend/parser/parse_clause.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* 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 $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -172,14 +172,13 @@ ListTableAsAttrs(ParseState *pstate, char *table);
172172
List*
173173
ListTableAsAttrs(ParseState*pstate,char*table)
174174
{
175-
List*rlist=NULL;
175+
Attr*attr=expandTable(pstate,table, TRUE);
176+
List*rlist=NIL;
176177
List*col;
177178

178-
Attr*attr=expandTable(pstate,table, TRUE);
179179
foreach(col,attr->attrs)
180180
{
181-
Attr*a;
182-
a=makeAttr(table,strVal((Value*)col));
181+
Attr*a=makeAttr(table,strVal((Value*)lfirst(col)));
183182
rlist=lappend(rlist,a);
184183
}
185184

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp