Add subquery mention in auto-create table entry.

This commit is contained in:
Bruce Momjian 1999-09-28 17:50:23 +00:00
parent 57d0ae5590
commit 008ef1de22
2 changed files with 11 additions and 5 deletions

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.57 1999/09/28 03:41:36 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parse_func.c,v 1.58 1999/09/28 17:50:23 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -275,7 +275,9 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
if (rte == NULL) if (rte == NULL)
{ {
rte = addRangeTableEntry(pstate, refname, refname,FALSE, FALSE); rte = addRangeTableEntry(pstate, refname, refname,FALSE, FALSE);
elog(NOTICE,"Adding missing FROM-clause entry for table %s", refname); elog(NOTICE,"Adding missing FROM-clause entry%s for table %s",
pstate->parentParseState != NULL ? " in subquery" : "",
refname);
} }
relname = rte->relname; relname = rte->relname;
@ -434,7 +436,9 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
if (rte == NULL) if (rte == NULL)
{ {
rte = addRangeTableEntry(pstate, refname, refname,FALSE, FALSE); rte = addRangeTableEntry(pstate, refname, refname,FALSE, FALSE);
elog(NOTICE,"Adding missing FROM-clause entry for table %s", refname); elog(NOTICE,"Adding missing FROM-clause entry%s for table %s",
pstate->parentParseState != NULL ? " in subquery" : "",
refname);
} }
relname = rte->relname; relname = rte->relname;

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.29 1999/09/28 03:41:36 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.30 1999/09/28 17:50:23 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -241,7 +241,9 @@ expandAll(ParseState *pstate, char *relname, char *refname, int *this_resno)
if (rte == NULL) if (rte == NULL)
{ {
rte = addRangeTableEntry(pstate, relname, refname, FALSE, FALSE); rte = addRangeTableEntry(pstate, relname, refname, FALSE, FALSE);
elog(NOTICE,"Adding missing FROM-clause entry for table %s", refname); elog(NOTICE,"Adding missing FROM-clause entry%s for table %s",
pstate->parentParseState != NULL ? " in subquery" : "",
refname);
} }
rel = heap_open(rte->relid, AccessShareLock); rel = heap_open(rte->relid, AccessShareLock);