mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 09:36:52 +02:00
Fix for select bug.
This commit is contained in:
parent
96c4212f99
commit
a873da484f
@ -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");
|
|||||||
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");
|
|||||||
&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)
|
||||||
|
Loading…
Reference in New Issue
Block a user