From 7f31669beac8cacb828acbdbaf29925a6f0d6677 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 20 Jan 1998 22:12:17 +0000 Subject: Add Var.varlevelup to code. More parser cleanup. --- src/backend/parser/parse_expr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backend/parser/parse_expr.c') diff --git a/src/backend/parser/parse_expr.c b/src/backend/parser/parse_expr.c index ef42a61fe29..485054eac11 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.11 1998/01/20 05:04:14 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.12 1998/01/20 22:11:55 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -304,6 +304,7 @@ transformIdent(ParseState *pstate, Node *expr, int precedence) { Attr *att = makeNode(Attr); + /* we add the relation name for them */ att->relname = rte->refname; att->attrs = lcons(makeString(ident->name), NIL); column_result = @@ -312,7 +313,7 @@ transformIdent(ParseState *pstate, Node *expr, int precedence) } /* try to find the ident as a relation */ - if (refnameRangeTableEntry(pstate->p_rtable, ident->name) != NULL) + if (refnameRangeTableEntry(pstate, ident->name) != NULL) { ident->isRel = TRUE; relation_result = (Node *) ident; -- cgit v1.2.3