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

Print error on SELECT tab FROM tab:

You can't use relation names alone in the target list, try relation.*
This commit is contained in:
Bruce Momjian
2001-05-21 18:42:08 +00:00
parent 984bf07a65
commit 66e9ee79c7
4 changed files with 11 additions and 6 deletions

View File

@ -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)