Commit 008ef1de authored by Bruce Momjian's avatar Bruce Momjian

Add subquery mention in auto-create table entry.

parent 57d0ae55
......@@ -7,7 +7,7 @@
*
*
* 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)
{
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;
......@@ -434,7 +436,9 @@ ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs,
if (rte == NULL)
{
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;
......
......@@ -7,7 +7,7 @@
*
*
* 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)
{
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment