diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-05-17 04:19:33 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-05-17 04:19:33 +0000 |
commit | b8b1ba53ea456cadcaa5ef61a21c454427c8a28d (patch) | |
tree | be3bcfdbe7586abb2259b75b4bf6f53f321af5ac /src/backend/parser/parse_target.c | |
parent | a0b7daa129b082c1420366df0ec53af075d0c316 (diff) | |
download | postgresql-b8b1ba53ea456cadcaa5ef61a21c454427c8a28d.tar.gz postgresql-b8b1ba53ea456cadcaa5ef61a21c454427c8a28d.zip |
SELECT * error message fix.
Diffstat (limited to 'src/backend/parser/parse_target.c')
-rw-r--r-- | src/backend/parser/parse_target.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/parser/parse_target.c b/src/backend/parser/parse_target.c index b2376054fca..791dac74a19 100644 --- a/src/backend/parser/parse_target.c +++ b/src/backend/parser/parse_target.c @@ -7,7 +7,7 @@ * * * 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; if (pstate->p_is_rule) { - /* * skip first two entries, "*new*" and "*current*" */ rtable = lnext(lnext(pstate->p_rtable)); } - /* this should not happen */ + /* SELECT *; */ 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 |