Fix for select bug.

This commit is contained in:
Bruce Momjian 1998-08-26 03:17:32 +00:00
parent 96c4212f99
commit a873da484f
1 changed files with 22 additions and 20 deletions

View File

@ -7,7 +7,7 @@
*
*
* 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");
lnext(tail_p_target) = ExpandAllTables(pstate);
expand_star = true;
}
else
{
/*
* Target item is relation.*, expand the table (eg.
* SELECT emp.*, dname FROM emp, dept)
@ -598,6 +599,7 @@ printf("transformTargetList: decode T_Ident\n");
&pstate->p_last_resno);
expand_star = true;
}
}
if (expand_star)
{
while (lnext(tail_p_target) != NIL)