Commit a873da48 authored by Bruce Momjian's avatar Bruce Momjian

Fix for select bug.

parent 96c4212f
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.24 1998/08/25 03:22:49 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.25 1998/08/26 03:17:32 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -575,7 +575,8 @@ printf("transformTargetList: decode T_Ident\n"); ...@@ -575,7 +575,8 @@ printf("transformTargetList: decode T_Ident\n");
lnext(tail_p_target) = ExpandAllTables(pstate); lnext(tail_p_target) = ExpandAllTables(pstate);
expand_star = true; expand_star = true;
} }
else
{
/* /*
* Target item is relation.*, expand the table (eg. * Target item is relation.*, expand the table (eg.
* SELECT emp.*, dname FROM emp, dept) * SELECT emp.*, dname FROM emp, dept)
...@@ -598,6 +599,7 @@ printf("transformTargetList: decode T_Ident\n"); ...@@ -598,6 +599,7 @@ printf("transformTargetList: decode T_Ident\n");
&pstate->p_last_resno); &pstate->p_last_resno);
expand_star = true; expand_star = true;
} }
}
if (expand_star) if (expand_star)
{ {
while (lnext(tail_p_target) != NIL) while (lnext(tail_p_target) != NIL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment