Skip to content
Snippets Groups Projects
Commit a873da48 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Fix for select bug.

parent 96c4212f
No related branches found
No related tags found
No related merge requests found
...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment