1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-13 07:41:39 +03:00

ParseComplexProjection should make use of expandRecordVariable so that

it can handle cases like (foo.x).y where foo is a subquery and x is
a function-returning-RECORD RTE in that subquery.
This commit is contained in:
Tom Lane
2005-05-31 01:03:23 +00:00
parent 12a323b7a8
commit 83b72ee286
3 changed files with 20 additions and 10 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/parser/parse_target.c,v 1.133 2005/04/25 22:02:30 tgl Exp $
* $PostgreSQL: pgsql/src/backend/parser/parse_target.c,v 1.134 2005/05/31 01:03:23 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -44,8 +44,6 @@ static Node *transformAssignmentIndirection(ParseState *pstate,
static List *ExpandColumnRefStar(ParseState *pstate, ColumnRef *cref);
static List *ExpandAllTables(ParseState *pstate);
static List *ExpandIndirectionStar(ParseState *pstate, A_Indirection *ind);
static TupleDesc expandRecordVariable(ParseState *pstate, Var *var,
int levelsup);
static int FigureColnameInternal(Node *node, char **name);
@ -905,7 +903,7 @@ ExpandIndirectionStar(ParseState *pstate, A_Indirection *ind)
*
* levelsup is an extra offset to interpret the Var's varlevelsup correctly.
*/
static TupleDesc
TupleDesc
expandRecordVariable(ParseState *pstate, Var *var, int levelsup)
{
TupleDesc tupleDesc;