From 83b72ee286764e20c3f1c8c418780bab50ff6c29 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 31 May 2005 01:03:23 +0000 Subject: 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. --- src/include/parser/parse_target.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/parser/parse_target.h') diff --git a/src/include/parser/parse_target.h b/src/include/parser/parse_target.h index 30abd52c1a..35c2a41baf 100644 --- a/src/include/parser/parse_target.h +++ b/src/include/parser/parse_target.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/parser/parse_target.h,v 1.35 2004/12/31 22:03:38 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/parser/parse_target.h,v 1.36 2005/05/31 01:03:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -27,6 +27,8 @@ extern void updateTargetListEntry(ParseState *pstate, TargetEntry *tle, List *indirection); extern List *checkInsertTargets(ParseState *pstate, List *cols, List **attrnos); +extern TupleDesc expandRecordVariable(ParseState *pstate, Var *var, + int levelsup); extern char *FigureColname(Node *node); #endif /* PARSE_TARGET_H */ -- cgit v1.2.1