mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03:00
SELECT * error message fix.
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.35 1999/04/29 03:01:50 tgl Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.36 1999/05/17 04:19:33 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -814,16 +814,15 @@ ExpandAllTables(ParseState *pstate)
|
|||||||
rtable = pstate->p_rtable;
|
rtable = pstate->p_rtable;
|
||||||
if (pstate->p_is_rule)
|
if (pstate->p_is_rule)
|
||||||
{
|
{
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* skip first two entries, "*new*" and "*current*"
|
* skip first two entries, "*new*" and "*current*"
|
||||||
*/
|
*/
|
||||||
rtable = lnext(lnext(pstate->p_rtable));
|
rtable = lnext(lnext(pstate->p_rtable));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* this should not happen */
|
/* SELECT *; */
|
||||||
if (rtable == NULL)
|
if (rtable == NULL)
|
||||||
elog(ERROR, "Cannot expand tables; null p_rtable (internal error)");
|
elog(ERROR, "Wildcard with no tables specified.");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* go through the range table and make a list of range table entries
|
* go through the range table and make a list of range table entries
|
||||||
|
Reference in New Issue
Block a user