Skip to content

Commit b8b1ba5

Browse files
committed
SELECT * error message fix.
1 parent a0b7daa commit b8b1ba5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/backend/parser/parse_target.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.35 1999/04/29 03:01:50 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_target.c,v 1.36 1999/05/17 04:19:33 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -814,16 +814,15 @@ ExpandAllTables(ParseState *pstate)
814814
rtable = pstate->p_rtable;
815815
if (pstate->p_is_rule)
816816
{
817-
818817
/*
819818
* skip first two entries, "*new*" and "*current*"
820819
*/
821820
rtable = lnext(lnext(pstate->p_rtable));
822821
}
823822

824-
/* this should not happen */
823+
/* SELECT *; */
825824
if (rtable == NULL)
826-
elog(ERROR, "Cannot expand tables; null p_rtable (internal error)");
825+
elog(ERROR, "Wildcard with no tables specified.");
827826

828827
/*
829828
* go through the range table and make a list of range table entries

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy