]> granicus.if.org Git - postgresql/commitdiff
Make these self-contained tests...they are testing types, so the tables
authorMarc G. Fournier <scrappy@hub.org>
Sun, 27 Apr 1997 04:36:10 +0000 (04:36 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Sun, 27 Apr 1997 04:36:10 +0000 (04:36 +0000)
that are created should only exist as long as the test requires them...

things are just toooooo spread around

18 files changed:
src/test/regress/sql/boolean.sql
src/test/regress/sql/box.sql
src/test/regress/sql/char.sql
src/test/regress/sql/char16.sql
src/test/regress/sql/char2.sql
src/test/regress/sql/char4.sql
src/test/regress/sql/char8.sql
src/test/regress/sql/destroy.sql
src/test/regress/sql/float4.sql
src/test/regress/sql/float8.sql
src/test/regress/sql/int2.sql
src/test/regress/sql/int4.sql
src/test/regress/sql/oid.sql
src/test/regress/sql/oidint2.sql
src/test/regress/sql/oidint4.sql
src/test/regress/sql/oidname.sql
src/test/regress/sql/point.sql
src/test/regress/sql/polygon.sql

index 8fbe5edb8cfcbce0d648c0a6fac725a8900cadba..6005ad64bd78192782633596ff124fa2511239a7 100644 (file)
@@ -1,7 +1,7 @@
 --
 -- 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.*
 
 SELECT '' AS tf_12_ff_4, BOOLTBL1.*, BOOLTBL2.*
    WHERE BOOLTBL2.f1 = BOOLTBL1.f1 or BOOLTBL1.f1 = 'true'::bool;
+
+DROP TABLE  BOOLTBL1;
+
+DROP TABLE  BOOLTBL2;
index f350e12e8a4cfa5ffe11795f8c1872b4496cce08..b6197cc9ac84aa862b85aee949f550ae54850abc 100644 (file)
@@ -114,4 +114,4 @@ SELECT '' AS one, b1.*, b2.*
    FROM BOX_TBL b1, BOX_TBL b2 
    WHERE b1.f1 ~ b2.f1 and not b1.f1 ~= b2.f1;
 
-
+DROP TABLE  BOX_TBL;
index 20c2826c60b4b7cc9b270dcf4edb2b1eb3ea7bd4..8dd7bdc22d212ac16d85a5effd119930e9fd095f 100644 (file)
@@ -49,4 +49,5 @@ SELECT '' AS two, c.*
    FROM CHAR_TBL c
    WHERE c.f1 >= 'a';
 
+DROP TABLE CHAR_TBL;
 
index 75f109c8656205eaf472cedf2b2b19c90ac496b8..d1d5ea1d4709a23fccb7bad8e969f9add611c42a 100644 (file)
@@ -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.*';
 
-
+DROP TABLE CHAR16_TBL;
index da0d152d2a413a3adca889b558be08c6157ad024..6a578f352a5d74cbfccc08f67fa3b94b6905d921 100644 (file)
@@ -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.*';
 
-
-
+DROP TABLE CHAR2_TBL;
index 338a2857781d8a949e17827c2cc7a16d0c6b9eff..5455557ef032e515ba0264532d8663fc012211c2 100644 (file)
@@ -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.*';
 
-
+DROP TABLE  CHAR4_TBL;
index c3ac9f32121f8b4ad755cf248192f3d1c2b58ccf..33adde43372f8b1eccd17a9d3ea87285b4491729 100644 (file)
@@ -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.*';
 
-
-
+DROP TABLE  CHAR8_TBL;
index 8f32eb5d8b83405fd263ccd87ea0e581713de85c..345af37c36f989f51cb755b57d032c75ac0ac738 100644 (file)
@@ -1,7 +1,7 @@
 --
 -- 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;
 DROP TABLE  bt_f8_heap;
 
 
-DROP TABLE  BOOLTBL1;
-
-DROP TABLE  BOOLTBL2;
-
 DROP TABLE  ABSTIME_TBL;
 
 DROP TABLE  RELTIME_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
 --     (also tests removal of rewrite rules)
index f5e7866b2b5ef5567a44fedf64b9f3b682e31e6e..518cc902cb026230218a5c1d41e105c559affdb4 100644 (file)
@@ -62,4 +62,4 @@ UPDATE FLOAT4_TBL
 
 SELECT '' AS five, FLOAT4_TBL.*;
 
-
+DROP TABLE  FLOAT4_TBL;
index e31b1c0ffdd3228f2e23692a99ec184f4e1f46cb..e55f6c7f24e81f769cc89025c880f22871870c9f 100644 (file)
@@ -101,4 +101,4 @@ SELECT '' AS bad, f.f1 / '0.0' from FLOAT8_TBL f;
 
 SELECT '' AS five, FLOAT8_TBL.*;
 
-
+DROP TABLE  FLOAT8_TBL;
index 3c4c6793c97a88b5854a0bc3e54c019f3a5b03ad..cc46babbab1ea66bd3f91e5f313b7d5a62696b68 100644 (file)
@@ -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;
 
-
-
+DROP TABLE  INT2_TBL;
index f701c2e196bba282cb847aac577e908e0336c0ff..4dd1352a0f8b6f515e7e0f8962e12466073527e1 100644 (file)
@@ -101,5 +101,4 @@ SELECT |/'64'::float8 AS eight;
 
 SELECT ||/'27'::float8 AS three;
 
-
-
+DROP TABLE  INT4_TBL;
index 2ffb22b4e4be45e5139bf1e9e734a4bd2d5ba682..ae337e05fa687be95f6199fefc8c154908bb804a 100644 (file)
@@ -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';
 
-
+DROP TABLE  OID_TBL;
index b87b6fab3d28ff2f75d606020332441f911a7e5d..f1966844d2cea462867064fa3de6307117bd0d9e 100644 (file)
@@ -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';
 
-
+DROP TABLE  OIDINT2_TBL;
index ce359b2701fab1329f9a6107d098ecf440b688d1..99549c99ca84cca3b15cd231b0c26d40a73550d4 100644 (file)
@@ -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';
 
-
+DROP TABLE  OIDINT4_TBL;
index 14812370aabd4866de30c85ddf2f910e28b2158f..65fccc3c06ff4a5095e4f083068cf4a5f1fad8d3 100644 (file)
@@ -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';
 
-
+DROP TABLE  OIDNAME_TBL;
index 452008b2db17e24279306eae4fa7f847a47dc27d..a316cf14a826c4086ea2c28ed33612840b49fb90 100644 (file)
@@ -69,3 +69,4 @@ SELECT '' AS three, p1.f1, p2.f1
        p1.f1 !< p2.f1 and
        p1.f1 !^ p2.f1;
 
+DROP TABLE  POINT_TBL;
index f8928545a21182556557a6f4a683ce7e0039440d..cb6c7b5b28c79a6e0a89cdf36b6fb6f5ef613a46 100644 (file)
@@ -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 
 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;