|
|
|
@ -10,13 +10,11 @@ select 1; |
|
|
|
|
|
|
|
|
|
|
|
-- |
|
|
|
-- |
|
|
|
-- UNSUPPORTED STUFF |
|
|
|
-- UNSUPPORTED STUFF |
|
|
|
|
|
|
|
|
|
|
|
-- doesn't work |
|
|
|
-- doesn't work |
|
|
|
-- notify pg_class |
|
|
|
-- notify pg_class |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- SELECT |
|
|
|
-- SELECT |
|
|
|
|
|
|
|
|
|
|
|
-- missing relation name |
|
|
|
-- missing relation name |
|
|
|
select; |
|
|
|
select; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -59,7 +57,6 @@ LINE 1: select distinct on (foobar) * from pg_database; |
|
|
|
^ |
|
|
|
^ |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DELETE |
|
|
|
-- DELETE |
|
|
|
|
|
|
|
|
|
|
|
-- missing relation name (this had better not wildcard!) |
|
|
|
-- missing relation name (this had better not wildcard!) |
|
|
|
delete from; |
|
|
|
delete from; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -72,7 +69,6 @@ LINE 1: delete from nonesuch; |
|
|
|
^ |
|
|
|
^ |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DROP |
|
|
|
-- DROP |
|
|
|
|
|
|
|
|
|
|
|
-- missing relation name (this had better not wildcard!) |
|
|
|
-- missing relation name (this had better not wildcard!) |
|
|
|
drop table; |
|
|
|
drop table; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -83,7 +79,6 @@ drop table nonesuch; |
|
|
|
ERROR: table "nonesuch" does not exist |
|
|
|
ERROR: table "nonesuch" does not exist |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- ALTER TABLE |
|
|
|
-- ALTER TABLE |
|
|
|
|
|
|
|
|
|
|
|
-- relation renaming |
|
|
|
-- relation renaming |
|
|
|
-- missing relation name |
|
|
|
-- missing relation name |
|
|
|
alter table rename; |
|
|
|
alter table rename; |
|
|
|
@ -117,7 +112,6 @@ alter table emp rename column salary to oid; |
|
|
|
ERROR: column "oid" of relation "stud_emp" already exists |
|
|
|
ERROR: column "oid" of relation "stud_emp" already exists |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- TRANSACTION STUFF |
|
|
|
-- TRANSACTION STUFF |
|
|
|
|
|
|
|
|
|
|
|
-- not in a xact |
|
|
|
-- not in a xact |
|
|
|
abort; |
|
|
|
abort; |
|
|
|
NOTICE: there is no transaction in progress |
|
|
|
NOTICE: there is no transaction in progress |
|
|
|
@ -140,7 +134,6 @@ create aggregate newcnt1 (sfunc = int4inc, |
|
|
|
ERROR: aggregate input type must be specified |
|
|
|
ERROR: aggregate input type must be specified |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DROP INDEX |
|
|
|
-- DROP INDEX |
|
|
|
|
|
|
|
|
|
|
|
-- missing index name |
|
|
|
-- missing index name |
|
|
|
drop index; |
|
|
|
drop index; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -156,7 +149,6 @@ drop index nonesuch; |
|
|
|
ERROR: index "nonesuch" does not exist |
|
|
|
ERROR: index "nonesuch" does not exist |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DROP AGGREGATE |
|
|
|
-- DROP AGGREGATE |
|
|
|
|
|
|
|
|
|
|
|
-- missing aggregate name |
|
|
|
-- missing aggregate name |
|
|
|
drop aggregate; |
|
|
|
drop aggregate; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -183,7 +175,6 @@ drop aggregate newcnt (float4); |
|
|
|
ERROR: aggregate newcnt(real) does not exist |
|
|
|
ERROR: aggregate newcnt(real) does not exist |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DROP FUNCTION |
|
|
|
-- DROP FUNCTION |
|
|
|
|
|
|
|
|
|
|
|
-- missing function name |
|
|
|
-- missing function name |
|
|
|
drop function (); |
|
|
|
drop function (); |
|
|
|
ERROR: syntax error at or near "(" |
|
|
|
ERROR: syntax error at or near "(" |
|
|
|
@ -199,7 +190,6 @@ drop function nonesuch(); |
|
|
|
ERROR: function nonesuch() does not exist |
|
|
|
ERROR: function nonesuch() does not exist |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DROP TYPE |
|
|
|
-- DROP TYPE |
|
|
|
|
|
|
|
|
|
|
|
-- missing type name |
|
|
|
-- missing type name |
|
|
|
drop type; |
|
|
|
drop type; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -215,7 +205,6 @@ drop type nonesuch; |
|
|
|
ERROR: type "nonesuch" does not exist |
|
|
|
ERROR: type "nonesuch" does not exist |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DROP OPERATOR |
|
|
|
-- DROP OPERATOR |
|
|
|
|
|
|
|
|
|
|
|
-- missing everything |
|
|
|
-- missing everything |
|
|
|
drop operator; |
|
|
|
drop operator; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -279,7 +268,6 @@ LINE 1: drop operator = (int4, ); |
|
|
|
^ |
|
|
|
^ |
|
|
|
-- |
|
|
|
-- |
|
|
|
-- DROP RULE |
|
|
|
-- DROP RULE |
|
|
|
|
|
|
|
|
|
|
|
-- missing rule name |
|
|
|
-- missing rule name |
|
|
|
drop rule; |
|
|
|
drop rule; |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
ERROR: syntax error at or near ";" |
|
|
|
@ -378,7 +366,7 @@ LINE 3: id3 INTEGER NOT NUL, |
|
|
|
CREATE TABLE foo(id INT4 UNIQUE NOT NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL, |
|
|
|
CREATE TABLE foo(id INT4 UNIQUE NOT NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL, |
|
|
|
id4 INT4 UNIQUE NOT NULL, id5 TEXT UNIQUE NOT NULL); |
|
|
|
id4 INT4 UNIQUE NOT NULL, id5 TEXT UNIQUE NOT NULL); |
|
|
|
ERROR: syntax error at or near "NUL" |
|
|
|
ERROR: syntax error at or near "NUL" |
|
|
|
LINE 1: ...T NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL, |
|
|
|
LINE 1: ...OT NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL, |
|
|
|
^ |
|
|
|
^ |
|
|
|
-- long line to be truncated on the right |
|
|
|
-- long line to be truncated on the right |
|
|
|
CREATE TABLE foo( |
|
|
|
CREATE TABLE foo( |
|
|
|
@ -406,7 +394,7 @@ NOT |
|
|
|
NULL) |
|
|
|
NULL) |
|
|
|
; |
|
|
|
; |
|
|
|
ERROR: syntax error at or near "NUL" |
|
|
|
ERROR: syntax error at or near "NUL" |
|
|
|
LINE 4: ...T NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL, |
|
|
|
LINE 4: ...OT NULL, id2 TEXT NOT NULL PRIMARY KEY, id3 INTEGER NOT NUL, |
|
|
|
^ |
|
|
|
^ |
|
|
|
-- long line to be truncated on the right, many lines |
|
|
|
-- long line to be truncated on the right, many lines |
|
|
|
CREATE |
|
|
|
CREATE |
|
|
|
|