Commit e4b27f2a authored by Thomas G. Lockhart's avatar Thomas G. Lockhart

Make tests match with modified error messages.

parent aeecb4e5
...@@ -2,7 +2,6 @@ QUERY: select 1 ...@@ -2,7 +2,6 @@ QUERY: select 1
select select
select * from nonesuch; select * from nonesuch;
WARN:parser: parse error at or near "select" WARN:parser: parse error at or near "select"
QUERY: select nonesuch from pg_database; QUERY: select nonesuch from pg_database;
WARN:attribute "nonesuch" not found WARN:attribute "nonesuch" not found
QUERY: select * from pg_database where nonesuch = pg_database.datname; QUERY: select * from pg_database where nonesuch = pg_database.datname;
...@@ -11,22 +10,18 @@ QUERY: select * from pg_database where pg_database.datname = nonesuch; ...@@ -11,22 +10,18 @@ QUERY: select * from pg_database where pg_database.datname = nonesuch;
WARN:attribute "nonesuch" not found WARN:attribute "nonesuch" not found
QUERY: select distinct on foobar from pg_database; QUERY: select distinct on foobar from pg_database;
WARN:parser: parse error at or near "from" WARN:parser: parse error at or near "from"
QUERY: select distinct on foobar * from pg_database; QUERY: select distinct on foobar * from pg_database;
WARN:The field specified in the UNIQUE ON clause is not in the targetlist WARN:The field specified in the UNIQUE ON clause is not in the targetlist
QUERY: delete from; QUERY: delete from;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: delete from nonesuch; QUERY: delete from nonesuch;
WARN:nonesuch: Table does not exist. WARN:nonesuch: Table does not exist.
QUERY: drop table; QUERY: drop table;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop table nonesuch; QUERY: drop table nonesuch;
WARN:Relation nonesuch Does Not Exist! WARN:Relation nonesuch Does Not Exist!
QUERY: alter table rename; QUERY: alter table rename;
WARN:parser: parse error at or near "rename" WARN:parser: parse error at or near "rename"
QUERY: alter table nonesuch rename to newnonesuch; QUERY: alter table nonesuch rename to newnonesuch;
WARN:renamerel: relation "nonesuch" does not exist WARN:renamerel: relation "nonesuch" does not exist
QUERY: alter table nonesuch rename to stud_emp; QUERY: alter table nonesuch rename to stud_emp;
...@@ -85,62 +80,46 @@ QUERY: create aggregate newcnt1 (sfunc2 = int4inc, ...@@ -85,62 +80,46 @@ QUERY: create aggregate newcnt1 (sfunc2 = int4inc,
WARN:AggregateCreate: transition function 2 MUST have an initial value WARN:AggregateCreate: transition function 2 MUST have an initial value
QUERY: drop index; QUERY: drop index;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop index 314159; QUERY: drop index 314159;
WARN:parser: parse error at or near "314159" WARN:parser: parse error at or near "314159"
QUERY: drop index nonesuch; QUERY: drop index nonesuch;
WARN:index "nonesuch" nonexistent WARN:index "nonesuch" nonexistent
QUERY: drop aggregate; QUERY: drop aggregate;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop aggregate 314159; QUERY: drop aggregate 314159;
WARN:parser: parse error at or near "314159" WARN:parser: parse error at or near "314159"
QUERY: drop aggregate nonesuch; QUERY: drop aggregate nonesuch;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop aggregate newcnt1; QUERY: drop aggregate newcnt1;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop aggregate newcnt nonesuch; QUERY: drop aggregate newcnt nonesuch;
WARN:RemoveAggregate: type 'nonesuch' does not exist WARN:RemoveAggregate: type 'nonesuch' does not exist
QUERY: drop aggregate newcnt float4; QUERY: drop aggregate newcnt float4;
WARN:RemoveAggregate: aggregate 'newcnt' for 'float4' does not exist WARN:RemoveAggregate: aggregate 'newcnt' for 'float4' does not exist
QUERY: drop function (); QUERY: drop function ();
WARN:parser: parse error at or near "(" WARN:parser: parse error at or near "("
QUERY: drop function 314159(); QUERY: drop function 314159();
WARN:parser: parse error at or near "314159" WARN:parser: parse error at or near "314159"
QUERY: drop function nonesuch(); QUERY: drop function nonesuch();
WARN:RemoveFunction: function nonesuch() does not exist WARN:RemoveFunction: function nonesuch() does not exist
QUERY: drop type; QUERY: drop type;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop type 314159; QUERY: drop type 314159;
WARN:parser: parse error at or near "314159" WARN:parser: parse error at or near "314159"
QUERY: drop type nonesuch; QUERY: drop type nonesuch;
WARN:RemoveType: type 'nonesuch' does not exist WARN:RemoveType: type 'nonesuch' does not exist
QUERY: drop operator; QUERY: drop operator;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop operator equals; QUERY: drop operator equals;
WARN:parser: parse error at or near "equals" WARN:parser: parse error at or near "equals"
QUERY: drop operator ===; QUERY: drop operator ===;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop operator int4, int4; QUERY: drop operator int4, int4;
WARN:parser: parse error at or near "int4" WARN:parser: parse error at or near "int4"
QUERY: drop operator (int4, int4); QUERY: drop operator (int4, int4);
WARN:parser: parse error at or near "(" WARN:parser: parse error at or near "("
QUERY: drop operator === (); QUERY: drop operator === ();
WARN:parser: parse error at or near ")" WARN:parser: parse error at or near ")"
QUERY: drop operator === (int4); QUERY: drop operator === (int4);
WARN:parser: argument type missing (use NONE for unary operators) WARN:parser: argument type missing (use NONE for unary operators)
QUERY: drop operator === (int4, int4); QUERY: drop operator === (int4, int4);
...@@ -149,28 +128,21 @@ QUERY: drop operator = (nonesuch); ...@@ -149,28 +128,21 @@ QUERY: drop operator = (nonesuch);
WARN:parser: argument type missing (use NONE for unary operators) WARN:parser: argument type missing (use NONE for unary operators)
QUERY: drop operator = ( , int4); QUERY: drop operator = ( , int4);
WARN:parser: parse error at or near "," WARN:parser: parse error at or near ","
QUERY: drop operator = (nonesuch, int4); QUERY: drop operator = (nonesuch, int4);
WARN:RemoveOperator: type 'nonesuch' does not exist WARN:RemoveOperator: type 'nonesuch' does not exist
QUERY: drop operator = (int4, nonesuch); QUERY: drop operator = (int4, nonesuch);
WARN:RemoveOperator: type 'nonesuch' does not exist WARN:RemoveOperator: type 'nonesuch' does not exist
QUERY: drop operator = (int4, ); QUERY: drop operator = (int4, );
WARN:parser: parse error at or near ")" WARN:parser: parse error at or near ")"
QUERY: drop rule; QUERY: drop rule;
WARN:parser: parse error at or near ";" WARN:parser: parse error at or near ";"
QUERY: drop rule 314159; QUERY: drop rule 314159;
WARN:parser: parse error at or near "314159" WARN:parser: parse error at or near "314159"
QUERY: drop rule nonesuch; QUERY: drop rule nonesuch;
WARN:RewriteGetRuleEventRel: rule "nonesuch" not found WARN:RewriteGetRuleEventRel: rule "nonesuch" not found
QUERY: drop tuple rule nonesuch; QUERY: drop tuple rule nonesuch;
WARN:parser: parse error at or near "tuple" WARN:parser: parse error at or near "tuple"
QUERY: drop instance rule nonesuch; QUERY: drop instance rule nonesuch;
WARN:parser: parse error at or near "instance" WARN:parser: parse error at or near "instance"
QUERY: drop rewrite rule nonesuch; QUERY: drop rewrite rule nonesuch;
WARN:parser: parse error at or near "rewrite" WARN:parser: parse error at or near "rewrite"
...@@ -5,17 +5,13 @@ QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('-34.84'); ...@@ -5,17 +5,13 @@ QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('-34.84');
QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('1.2345678901234e+20'); QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('1.2345678901234e+20');
QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('1.2345678901234e-20'); QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('1.2345678901234e-20');
QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('10e40'); QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('10e40');
WARN: Bad float4 input format -- overflow WARN:Bad float4 input format -- overflow
QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('-10e40'); QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('-10e40');
WARN: Bad float4 input format -- overflow WARN:Bad float4 input format -- overflow
QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('10e-40'); QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('10e-40');
WARN: Bad float4 input format -- underflow WARN:Bad float4 input format -- underflow
QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('-10e-40'); QUERY: INSERT INTO FLOAT4_TBL(f1) VALUES ('-10e-40');
WARN: Bad float4 input format -- underflow WARN:Bad float4 input format -- underflow
QUERY: SELECT '' AS five, FLOAT4_TBL.*; QUERY: SELECT '' AS five, FLOAT4_TBL.*;
five|f1 five|f1
----+----------- ----+-----------
...@@ -112,7 +108,7 @@ three|f1 |x ...@@ -112,7 +108,7 @@ three|f1 |x
(3 rows) (3 rows)
QUERY: SELECT '' AS bad, f.f1 / '0.0' from FLOAT4_TBL f; QUERY: SELECT '' AS bad, f.f1 / '0.0' from FLOAT4_TBL f;
WARN:float4div: divide by 0.0 error WARN:float4div: divide by zero error
QUERY: SELECT '' AS five, FLOAT4_TBL.*; QUERY: SELECT '' AS five, FLOAT4_TBL.*;
five|f1 five|f1
----+----------- ----+-----------
......
...@@ -5,17 +5,13 @@ QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-34.84'); ...@@ -5,17 +5,13 @@ QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-34.84');
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('1.2345678901234e+200'); QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('1.2345678901234e+200');
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('1.2345678901234e-200'); QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('1.2345678901234e-200');
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('10e400'); QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('10e400');
WARN: Bad float8 input format WARN:Bad float8 input format '10e400'
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e400'); QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e400');
WARN: Bad float8 input format WARN:Bad float8 input format '-10e400'
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('10e-400'); QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('10e-400');
WARN: Bad float8 input format WARN:Bad float8 input format '10e-400'
QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e-400'); QUERY: INSERT INTO FLOAT8_TBL(f1) VALUES ('-10e-400');
WARN: Bad float8 input format WARN:Bad float8 input format '-10e-400'
QUERY: SELECT '' AS five, FLOAT8_TBL.*; QUERY: SELECT '' AS five, FLOAT8_TBL.*;
five|f1 five|f1
----+-------------------- ----+--------------------
...@@ -199,13 +195,11 @@ QUERY: UPDATE FLOAT8_TBL ...@@ -199,13 +195,11 @@ QUERY: UPDATE FLOAT8_TBL
SET f1 = FLOAT8_TBL.f1 * '-1' SET f1 = FLOAT8_TBL.f1 * '-1'
WHERE FLOAT8_TBL.f1 > '0.0'; WHERE FLOAT8_TBL.f1 > '0.0';
QUERY: SELECT '' AS bad, f.f1 * '1e200' from FLOAT8_TBL f; QUERY: SELECT '' AS bad, f.f1 * '1e200' from FLOAT8_TBL f;
WARN: Bad float8 input format -- overflow WARN:Bad float8 input format -- overflow
QUERY: SELECT '' AS bad, f.f1 ^ '1e200' from FLOAT8_TBL f; QUERY: SELECT '' AS bad, f.f1 ^ '1e200' from FLOAT8_TBL f;
WARN:pow() returned a floating point out of the range WARN:pow() result is out of range
QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 = '0.0' ; QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 = '0.0' ;
WARN:can't take log of 0! WARN:can't take log of zero
QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 < '0.0' ; QUERY: SELECT '' AS bad, (; (f.f1)) from FLOAT8_TBL f where f.f1 < '0.0' ;
WARN:can't take log of a negative number WARN:can't take log of a negative number
QUERY: SELECT '' AS bad, : (f.f1) from FLOAT8_TBL f; QUERY: SELECT '' AS bad, : (f.f1) from FLOAT8_TBL f;
...@@ -219,7 +213,7 @@ bad| ?column? ...@@ -219,7 +213,7 @@ bad| ?column?
(5 rows) (5 rows)
QUERY: SELECT '' AS bad, f.f1 / '0.0' from FLOAT8_TBL f; QUERY: SELECT '' AS bad, f.f1 / '0.0' from FLOAT8_TBL f;
WARN:float8div: divide by 0.0 error WARN:float8div: divide by zero error
QUERY: SELECT '' AS five, FLOAT8_TBL.*; QUERY: SELECT '' AS five, FLOAT8_TBL.*;
five|f1 five|f1
----+--------------------- ----+---------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment