I guess the intention was to test incomplete SELECT statements, not

missing semicolons.

I also added a SELECT statement without a target list.

Manfred Koizar
This commit is contained in:
Bruce Momjian 2002-09-02 06:05:16 +00:00
parent 92a162c088
commit 48e1a39924
2 changed files with 16 additions and 5 deletions

View File

@ -2,7 +2,12 @@
-- ERRORS -- ERRORS
-- --
-- bad in postquel, but ok in postsql -- bad in postquel, but ok in postsql
select 1 select 1;
?column?
----------
1
(1 row)
-- --
-- UNSUPPORTED STUFF -- UNSUPPORTED STUFF
@ -16,10 +21,14 @@ select 1
-- RETRIEVE -- RETRIEVE
-- missing relation name -- missing relation name
select select;
ERROR: parser: parse error at or near ";" at character 7
-- no such relation -- no such relation
select * from nonesuch; select * from nonesuch;
ERROR: parser: parse error at or near "select" at character 10 ERROR: Relation "nonesuch" does not exist
-- missing target list
select from pg_database;
ERROR: parser: parse error at or near "from" at character 8
-- bad name in target list -- bad name in target list
select nonesuch from pg_database; select nonesuch from pg_database;
ERROR: Attribute "nonesuch" not found ERROR: Attribute "nonesuch" not found

View File

@ -3,7 +3,7 @@
-- --
-- bad in postquel, but ok in postsql -- bad in postquel, but ok in postsql
select 1 select 1;
-- --
@ -20,11 +20,13 @@ select 1
-- RETRIEVE -- RETRIEVE
-- missing relation name -- missing relation name
select select;
-- no such relation -- no such relation
select * from nonesuch; select * from nonesuch;
-- missing target list
select from pg_database;
-- bad name in target list -- bad name in target list
select nonesuch from pg_database; select nonesuch from pg_database;
-- bad attribute name on lhs of operator -- bad attribute name on lhs of operator