postgresql/src/test/regress/expected/errors.out

149 lines
5.8 KiB
Plaintext
Raw Normal View History

1997-04-27 05:57:34 +02:00
QUERY: select 1
select
select * from nonesuch;
ERROR: parser: parse error at or near "select"
1997-04-27 05:57:34 +02:00
QUERY: select nonesuch from pg_database;
ERROR: attribute 'nonesuch' not found
1997-04-27 05:57:34 +02:00
QUERY: select * from pg_database where nonesuch = pg_database.datname;
ERROR: attribute 'nonesuch' not found
1997-04-27 05:57:34 +02:00
QUERY: select * from pg_database where pg_database.datname = nonesuch;
ERROR: attribute 'nonesuch' not found
1997-04-27 05:57:34 +02:00
QUERY: select distinct on foobar from pg_database;
ERROR: parser: parse error at or near "from"
1997-04-27 05:57:34 +02:00
QUERY: select distinct on foobar * from pg_database;
ERROR: The field specified in the UNIQUE ON clause is not in the targetlist
1997-04-27 05:57:34 +02:00
QUERY: delete from;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: delete from nonesuch;
ERROR: nonesuch: Table does not exist.
1997-04-27 05:57:34 +02:00
QUERY: drop table;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: drop table nonesuch;
ERROR: Relation nonesuch Does Not Exist!
1997-04-27 05:57:34 +02:00
QUERY: alter table rename;
ERROR: parser: parse error at or near "rename"
1997-04-27 05:57:34 +02:00
QUERY: alter table nonesuch rename to newnonesuch;
ERROR: renamerel: relation "nonesuch" does not exist
1997-04-27 05:57:34 +02:00
QUERY: alter table nonesuch rename to stud_emp;
ERROR: renamerel: relation "nonesuch" does not exist
1997-04-27 05:57:34 +02:00
QUERY: alter table stud_emp rename to pg_stud_emp;
ERROR: renamerel: Illegal class name: "pg_stud_emp" -- pg_ is reserved for system catalogs
1997-04-27 05:57:34 +02:00
QUERY: alter table stud_emp rename to aggtest;
ERROR: renamerel: relation "aggtest" exists
1997-04-27 05:57:34 +02:00
QUERY: alter table stud_emp rename to stud_emp;
ERROR: renamerel: relation "stud_emp" exists
1997-04-27 05:57:34 +02:00
QUERY: alter table nonesuchrel rename column nonesuchatt to newnonesuchatt;
ERROR: renameatt: relation "nonesuchrel" nonexistent
1997-04-27 05:57:34 +02:00
QUERY: alter table emp rename column nonesuchatt to newnonesuchatt;
ERROR: renameatt: attribute "nonesuchatt" nonexistent
1997-04-27 05:57:34 +02:00
QUERY: alter table emp rename column salary to manager;
ERROR: renameatt: attribute "manager" exists
1997-04-27 05:57:34 +02:00
QUERY: alter table emp rename column salary to oid;
ERROR: renameatt: attribute "oid" exists
1997-04-27 05:57:34 +02:00
QUERY: abort;
1998-01-06 20:25:19 +01:00
NOTICE: UserAbortTransactionBlock and not in in-progress state
1997-04-27 05:57:34 +02:00
QUERY: end;
1998-01-06 20:25:19 +01:00
NOTICE: EndTransactionBlock and not inprogress/abort state
1997-04-27 05:57:34 +02:00
QUERY: create aggregate newavg1 (sfunc1 = int4pl,
basetype = int4,
stype1 = int4,
sfunc2 = int4inc,
stype2 = int4,
initcond1 = '0',
initcond2 = '0');
ERROR: AggregateCreate: Aggregate must have final function with both transition functions
1997-04-27 05:57:34 +02:00
QUERY: create aggregate newavg2 (sfunc1 = int4pl,
basetype = int4,
stype1 = int4,
sfunc2 = int2inc,
stype2 = int2,
finalfunc = int4div,
initcond1 = '0',
initcond2 = '0');
ERROR: AggregateCreate: 'int4div'('int4','int2') does not exist
1997-04-27 05:57:34 +02:00
QUERY: create aggregate newavg3 (sfunc1 = int4pl,
basetype = int4,
stype1 = int4,
sfunc2 = int4inc,
stype2 = int4,
finalfunc = int2div,
initcond1 = '0',
initcond2 = '0');
ERROR: AggregateCreate: 'int2div'('int4','int4') does not exist
1997-04-27 05:57:34 +02:00
QUERY: create aggregate newcnt1 (sfunc2 = int4inc,
stype2 = int4,
initcond2 = '0');
ERROR: Define: "basetype" unspecified
1997-04-27 05:57:34 +02:00
QUERY: create aggregate newcnt1 (sfunc2 = int4inc,
basetype = int4,
stype2 = int4);
ERROR: AggregateCreate: transition function 2 MUST have an initial value
1997-04-27 05:57:34 +02:00
QUERY: drop index;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: drop index 314159;
ERROR: parser: parse error at or near "314159"
1997-04-27 05:57:34 +02:00
QUERY: drop index nonesuch;
ERROR: index "nonesuch" nonexistent
1997-04-27 05:57:34 +02:00
QUERY: drop aggregate;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: drop aggregate 314159;
ERROR: parser: parse error at or near "314159"
1997-04-27 05:57:34 +02:00
QUERY: drop aggregate nonesuch;
ERROR: parser: parse error at or near ";"
QUERY: drop aggregate newcnt1;
ERROR: parser: parse error at or near ";"
QUERY: drop aggregate newcnt nonesuch;
ERROR: RemoveAggregate: type 'nonesuch' does not exist
QUERY: drop aggregate newcnt float4;
ERROR: RemoveAggregate: aggregate 'newcnt' for 'float4' does not exist
1997-04-27 05:57:34 +02:00
QUERY: drop function ();
ERROR: parser: parse error at or near "("
1997-04-27 05:57:34 +02:00
QUERY: drop function 314159();
ERROR: parser: parse error at or near "314159"
1997-04-27 05:57:34 +02:00
QUERY: drop function nonesuch();
1998-05-10 01:50:24 +02:00
ERROR: RemoveFunction: function 'nonesuch()' does not exist
1997-04-27 05:57:34 +02:00
QUERY: drop type;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: drop type 314159;
ERROR: parser: parse error at or near "314159"
1997-04-27 05:57:34 +02:00
QUERY: drop type nonesuch;
ERROR: RemoveType: type 'nonesuch' does not exist
1997-04-27 05:57:34 +02:00
QUERY: drop operator;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: drop operator equals;
ERROR: parser: parse error at or near "equals"
1997-04-27 05:57:34 +02:00
QUERY: drop operator ===;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: drop operator int4, int4;
ERROR: parser: parse error at or near "int4"
1997-04-27 05:57:34 +02:00
QUERY: drop operator (int4, int4);
ERROR: parser: parse error at or near "("
1997-04-27 05:57:34 +02:00
QUERY: drop operator === ();
ERROR: parser: parse error at or near ")"
1997-04-27 05:57:34 +02:00
QUERY: drop operator === (int4);
ERROR: parser: argument type missing (use NONE for unary operators)
1997-04-27 05:57:34 +02:00
QUERY: drop operator === (int4, int4);
ERROR: RemoveOperator: binary operator '===' taking 'int4' and 'int4' does not exist
1997-04-27 05:57:34 +02:00
QUERY: drop operator = (nonesuch);
ERROR: parser: argument type missing (use NONE for unary operators)
1997-04-27 05:57:34 +02:00
QUERY: drop operator = ( , int4);
ERROR: parser: parse error at or near ","
1997-04-27 05:57:34 +02:00
QUERY: drop operator = (nonesuch, int4);
ERROR: RemoveOperator: type 'nonesuch' does not exist
1997-04-27 05:57:34 +02:00
QUERY: drop operator = (int4, nonesuch);
ERROR: RemoveOperator: type 'nonesuch' does not exist
1997-04-27 05:57:34 +02:00
QUERY: drop operator = (int4, );
ERROR: parser: parse error at or near ")"
1997-04-27 05:57:34 +02:00
QUERY: drop rule;
ERROR: parser: parse error at or near ";"
1997-04-27 05:57:34 +02:00
QUERY: drop rule 314159;
ERROR: parser: parse error at or near "314159"
1997-04-27 05:57:34 +02:00
QUERY: drop rule nonesuch;
ERROR: RewriteGetRuleEventRel: rule "nonesuch" not found
1997-04-27 05:57:34 +02:00
QUERY: drop tuple rule nonesuch;
ERROR: parser: parse error at or near "tuple"
1997-04-27 05:57:34 +02:00
QUERY: drop instance rule nonesuch;
ERROR: parser: parse error at or near "instance"
1997-04-27 05:57:34 +02:00
QUERY: drop rewrite rule nonesuch;
ERROR: parser: parse error at or near "rewrite"