From 66e9ee79c75e2b684d47fd791a4a08f777eb731a Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 21 May 2001 18:42:08 +0000 Subject: Print error on SELECT tab FROM tab: You can't use relation names alone in the target list, try relation.* --- src/backend/parser/parse_expr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 08a2f5f2035..4cbbc1c980c 100644 --- a/src/backend/parser/parse_expr.c +++ b/src/backend/parser/parse_expr.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.95 2001/05/19 00:33:20 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_expr.c,v 1.96 2001/05/21 18:42:08 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -585,7 +585,10 @@ transformIdent(ParseState *pstate, Ident *ident, int precedence) Node *var = colnameToVar(pstate, ident->name); if (var != NULL) + { + ident->isRel = FALSE; result = transformIndirection(pstate, var, ident->indirection); + } } if (result == NULL) -- cgit v1.2.3