Commit 3451abf6 authored by Marc G. Fournier's avatar Marc G. Fournier

Make these self-contained tests...they are testing types, so the tables

that are created should only exist as long as the test requires them...

things are just toooooo spread around
parent b29c2da7
-- --
-- boolean.source -- boolean.source
-- --
-- $Header: /cvsroot/pgsql/src/test/regress/sql/boolean.sql,v 1.1 1997/04/05 11:08:15 scrappy Exp $ -- $Header: /cvsroot/pgsql/src/test/regress/sql/boolean.sql,v 1.2 1997/04/27 04:35:02 scrappy Exp $
-- --
-- --
...@@ -93,3 +93,7 @@ SELECT '' AS ff_4, BOOLTBL1.*, BOOLTBL2.* ...@@ -93,3 +93,7 @@ SELECT '' AS ff_4, BOOLTBL1.*, BOOLTBL2.*
SELECT '' AS tf_12_ff_4, BOOLTBL1.*, BOOLTBL2.* SELECT '' AS tf_12_ff_4, BOOLTBL1.*, BOOLTBL2.*
WHERE BOOLTBL2.f1 = BOOLTBL1.f1 or BOOLTBL1.f1 = 'true'::bool; WHERE BOOLTBL2.f1 = BOOLTBL1.f1 or BOOLTBL1.f1 = 'true'::bool;
DROP TABLE BOOLTBL1;
DROP TABLE BOOLTBL2;
...@@ -114,4 +114,4 @@ SELECT '' AS one, b1.*, b2.* ...@@ -114,4 +114,4 @@ SELECT '' AS one, b1.*, b2.*
FROM BOX_TBL b1, BOX_TBL b2 FROM BOX_TBL b1, BOX_TBL b2
WHERE b1.f1 ~ b2.f1 and not b1.f1 ~= b2.f1; WHERE b1.f1 ~ b2.f1 and not b1.f1 ~= b2.f1;
DROP TABLE BOX_TBL;
...@@ -49,4 +49,5 @@ SELECT '' AS two, c.* ...@@ -49,4 +49,5 @@ SELECT '' AS two, c.*
FROM CHAR_TBL c FROM CHAR_TBL c
WHERE c.f1 >= 'a'; WHERE c.f1 >= 'a';
DROP TABLE CHAR_TBL;
...@@ -42,4 +42,4 @@ SELECT '' AS three, c.f1 FROM CHAR16_TBL c WHERE c.f1 ~ '[0-9]'; ...@@ -42,4 +42,4 @@ SELECT '' AS three, c.f1 FROM CHAR16_TBL c WHERE c.f1 ~ '[0-9]';
SELECT '' AS two, c.f1 FROM CHAR16_TBL c WHERE c.f1 ~ '.*asdf.*'; SELECT '' AS two, c.f1 FROM CHAR16_TBL c WHERE c.f1 ~ '.*asdf.*';
DROP TABLE CHAR16_TBL;
...@@ -42,5 +42,4 @@ SELECT '' AS one, c.f1 FROM CHAR2_TBL c WHERE c.f1 ~ '34'; ...@@ -42,5 +42,4 @@ SELECT '' AS one, c.f1 FROM CHAR2_TBL c WHERE c.f1 ~ '34';
SELECT '' AS one, c.f1 FROM CHAR2_TBL c WHERE c.f1 ~ '3.*'; SELECT '' AS one, c.f1 FROM CHAR2_TBL c WHERE c.f1 ~ '3.*';
DROP TABLE CHAR2_TBL;
...@@ -40,4 +40,4 @@ SELECT '' AS zero, c.f1 FROM CHAR4_TBL c WHERE c.f1 !~ '.*'; ...@@ -40,4 +40,4 @@ SELECT '' AS zero, c.f1 FROM CHAR4_TBL c WHERE c.f1 !~ '.*';
SELECT '' AS three, c.f1 FROM CHAR4_TBL c WHERE c.f1 ~ '.*34.*'; SELECT '' AS three, c.f1 FROM CHAR4_TBL c WHERE c.f1 ~ '.*34.*';
DROP TABLE CHAR4_TBL;
...@@ -42,5 +42,4 @@ SELECT '' AS four, c.f1 FROM CHAR8_TBL c WHERE c.f1 ~ '[0-9]'; ...@@ -42,5 +42,4 @@ SELECT '' AS four, c.f1 FROM CHAR8_TBL c WHERE c.f1 ~ '[0-9]';
SELECT '' AS three, c.f1 FROM CHAR8_TBL c WHERE c.f1 ~ '.*34.*'; SELECT '' AS three, c.f1 FROM CHAR8_TBL c WHERE c.f1 ~ '.*34.*';
DROP TABLE CHAR8_TBL;
-- --
-- destroy.source -- destroy.source
-- --
-- $Header: /cvsroot/pgsql/src/test/regress/sql/Attic/destroy.sql,v 1.1 1997/04/27 03:56:20 scrappy Exp $ -- $Header: /cvsroot/pgsql/src/test/regress/sql/Attic/destroy.sql,v 1.2 1997/04/27 04:35:31 scrappy Exp $
-- --
-- --
...@@ -230,49 +230,12 @@ DROP TABLE bt_txt_heap; ...@@ -230,49 +230,12 @@ DROP TABLE bt_txt_heap;
DROP TABLE bt_f8_heap; DROP TABLE bt_f8_heap;
DROP TABLE BOOLTBL1;
DROP TABLE BOOLTBL2;
DROP TABLE ABSTIME_TBL; DROP TABLE ABSTIME_TBL;
DROP TABLE RELTIME_TBL; DROP TABLE RELTIME_TBL;
DROP TABLE TINTERVAL_TBL; DROP TABLE TINTERVAL_TBL;
DROP TABLE BOX_TBL;
DROP TABLE CHAR_TBL;
DROP TABLE CHAR2_TBL;
DROP TABLE CHAR4_TBL;
DROP TABLE CHAR8_TBL;
DROP TABLE CHAR16_TBL;
DROP TABLE FLOAT4_TBL;
DROP TABLE FLOAT8_TBL;
DROP TABLE INT2_TBL;
DROP TABLE INT4_TBL;
DROP TABLE OID_TBL;
DROP TABLE OIDNAME_TBL;
DROP TABLE OIDINT2_TBL;
DROP TABLE OIDINT4_TBL;
DROP TABLE POINT_TBL;
DROP TABLE POLYGON_TBL;
-- --
-- VIRTUAL CLASS REMOVAL -- VIRTUAL CLASS REMOVAL
-- (also tests removal of rewrite rules) -- (also tests removal of rewrite rules)
......
...@@ -62,4 +62,4 @@ UPDATE FLOAT4_TBL ...@@ -62,4 +62,4 @@ UPDATE FLOAT4_TBL
SELECT '' AS five, FLOAT4_TBL.*; SELECT '' AS five, FLOAT4_TBL.*;
DROP TABLE FLOAT4_TBL;
...@@ -101,4 +101,4 @@ SELECT '' AS bad, f.f1 / '0.0' from FLOAT8_TBL f; ...@@ -101,4 +101,4 @@ SELECT '' AS bad, f.f1 / '0.0' from FLOAT8_TBL f;
SELECT '' AS five, FLOAT8_TBL.*; SELECT '' AS five, FLOAT8_TBL.*;
DROP TABLE FLOAT8_TBL;
...@@ -73,5 +73,4 @@ SELECT '' AS five, i.f1, i.f1 / '2'::int2 AS x FROM INT2_TBL i; ...@@ -73,5 +73,4 @@ SELECT '' AS five, i.f1, i.f1 / '2'::int2 AS x FROM INT2_TBL i;
SELECT '' AS five, i.f1, i.f1 / '2'::int4 AS x FROM INT2_TBL i; SELECT '' AS five, i.f1, i.f1 / '2'::int4 AS x FROM INT2_TBL i;
DROP TABLE INT2_TBL;
...@@ -101,5 +101,4 @@ SELECT |/'64'::float8 AS eight; ...@@ -101,5 +101,4 @@ SELECT |/'64'::float8 AS eight;
SELECT ||/'27'::float8 AS three; SELECT ||/'27'::float8 AS three;
DROP TABLE INT4_TBL;
...@@ -29,4 +29,4 @@ SELECT '' AS two, o.* FROM OID_TBL o WHERE o.f1 >= '1234'; ...@@ -29,4 +29,4 @@ SELECT '' AS two, o.* FROM OID_TBL o WHERE o.f1 >= '1234';
SELECT '' AS one, o.* FROM OID_TBL o WHERE o.f1 > '1234'; SELECT '' AS one, o.* FROM OID_TBL o WHERE o.f1 > '1234';
DROP TABLE OID_TBL;
...@@ -44,4 +44,4 @@ SELECT '' AS two, o.* FROM OIDINT2_TBL o WHERE o.f1 >= '1235/9873'; ...@@ -44,4 +44,4 @@ SELECT '' AS two, o.* FROM OIDINT2_TBL o WHERE o.f1 >= '1235/9873';
SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 > '1235/9873'; SELECT '' AS one, o.* FROM OIDINT2_TBL o WHERE o.f1 > '1235/9873';
DROP TABLE OIDINT2_TBL;
...@@ -43,4 +43,4 @@ SELECT '' AS two, o.* FROM OIDINT4_TBL o WHERE o.f1 >= '1235/9873'; ...@@ -43,4 +43,4 @@ SELECT '' AS two, o.* FROM OIDINT4_TBL o WHERE o.f1 >= '1235/9873';
SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 > '1235/9873'; SELECT '' AS one, o.* FROM OIDINT4_TBL o WHERE o.f1 > '1235/9873';
DROP TABLE OIDINT4_TBL;
...@@ -36,4 +36,4 @@ SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 >= '1234,abcd'; ...@@ -36,4 +36,4 @@ SELECT '' AS three, o.* FROM OIDNAME_TBL o WHERE o.f1 >= '1234,abcd';
SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 > '1234,abcd'; SELECT '' AS two, o.* FROM OIDNAME_TBL o WHERE o.f1 > '1234,abcd';
DROP TABLE OIDNAME_TBL;
...@@ -69,3 +69,4 @@ SELECT '' AS three, p1.f1, p2.f1 ...@@ -69,3 +69,4 @@ SELECT '' AS three, p1.f1, p2.f1
p1.f1 !< p2.f1 and p1.f1 !< p2.f1 and
p1.f1 !^ p2.f1; p1.f1 !^ p2.f1;
DROP TABLE POINT_TBL;
...@@ -115,3 +115,4 @@ SELECT '(2.0,2.0,0.0,0.0,4.0,0.0)'::polygon ~= '(3.0,3.0,1.0,1.0,3.0,0.0)'::poly ...@@ -115,3 +115,4 @@ SELECT '(2.0,2.0,0.0,0.0,4.0,0.0)'::polygon ~= '(3.0,3.0,1.0,1.0,3.0,0.0)'::poly
-- overlap -- overlap
SELECT '(2.0,2.0,0.0,0.0,4.0,0.0)'::polygon && '(3.0,3.0,1.0,1.0,3.0,0.0)'::polygon AS true; SELECT '(2.0,2.0,0.0,0.0,4.0,0.0)'::polygon && '(3.0,3.0,1.0,1.0,3.0,0.0)'::polygon AS true;
DROP TABLE POLYGON_TBL;
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