From 557e0ed20660a3ac6bdb95e35fc61008ab5aa04a Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Sun, 27 Apr 1997 07:45:49 +0000 Subject: [PATCH] Alot of regression test fixes, mainly to compensate for moving the DROP TABLE calls from the destroy.sql file to the 'types' .sql files, so that they are self-contained btree_index, hash_index and misc all fail as there seems to be missing a 'misc.out' expected file...have asked Thomas for one... --- src/test/regress/expected/boolean.out | 2 ++ src/test/regress/expected/box.out | 1 + src/test/regress/expected/char.out | 1 + src/test/regress/expected/char16.out | 1 + src/test/regress/expected/char2.out | 1 + src/test/regress/expected/char4.out | 1 + src/test/regress/expected/char8.out | 1 + src/test/regress/expected/float4.out | 1 + src/test/regress/expected/float8.out | 1 + src/test/regress/expected/int2.out | 3 +- src/test/regress/expected/int4.out | 3 +- src/test/regress/expected/oid.out | 1 + src/test/regress/expected/oidint2.out | 3 +- src/test/regress/expected/oidint4.out | 3 +- src/test/regress/expected/oidname.out | 1 + src/test/regress/expected/point.out | 1 + src/test/regress/input/copy.source | 40 +++++++++++++-------------- src/test/regress/output/copy.source | 3 ++ 18 files changed, 44 insertions(+), 24 deletions(-) diff --git a/src/test/regress/expected/boolean.out b/src/test/regress/expected/boolean.out index 0915136901..9c8ae4447f 100644 --- a/src/test/regress/expected/boolean.out +++ b/src/test/regress/expected/boolean.out @@ -177,3 +177,5 @@ tf_12_ff_4|f1|f1 |f |f (16 rows) +QUERY: DROP TABLE BOOLTBL1; +QUERY: DROP TABLE BOOLTBL2; diff --git a/src/test/regress/expected/box.out b/src/test/regress/expected/box.out index 19d2a65308..a3d5329fc3 100644 --- a/src/test/regress/expected/box.out +++ b/src/test/regress/expected/box.out @@ -167,3 +167,4 @@ one|f1 |f1 |(3,3),(1,1)|(3,3),(3,3) (1 row) +QUERY: DROP TABLE BOX_TBL; diff --git a/src/test/regress/expected/char.out b/src/test/regress/expected/char.out index e8c8fae00f..88cc3e7df8 100644 --- a/src/test/regress/expected/char.out +++ b/src/test/regress/expected/char.out @@ -81,3 +81,4 @@ two|f1 |c (2 rows) +QUERY: DROP TABLE CHAR_TBL; diff --git a/src/test/regress/expected/char16.out b/src/test/regress/expected/char16.out index ca449c4459..76695268b5 100644 --- a/src/test/regress/expected/char16.out +++ b/src/test/regress/expected/char16.out @@ -101,3 +101,4 @@ two|f1 |d34aaasdf (2 rows) +QUERY: DROP TABLE CHAR16_TBL; diff --git a/src/test/regress/expected/char2.out b/src/test/regress/expected/char2.out index 0bef6660c2..d045f61365 100644 --- a/src/test/regress/expected/char2.out +++ b/src/test/regress/expected/char2.out @@ -98,3 +98,4 @@ one|f1 |34 (1 row) +QUERY: DROP TABLE CHAR2_TBL; diff --git a/src/test/regress/expected/char4.out b/src/test/regress/expected/char4.out index da2c92fd37..84a595fc79 100644 --- a/src/test/regress/expected/char4.out +++ b/src/test/regress/expected/char4.out @@ -94,3 +94,4 @@ three|f1 |1234 (3 rows) +QUERY: DROP TABLE CHAR4_TBL; diff --git a/src/test/regress/expected/char8.out b/src/test/regress/expected/char8.out index 93e9666420..2078c3b5e2 100644 --- a/src/test/regress/expected/char8.out +++ b/src/test/regress/expected/char8.out @@ -103,3 +103,4 @@ three|f1 |12345678 (3 rows) +QUERY: DROP TABLE CHAR8_TBL; diff --git a/src/test/regress/expected/float4.out b/src/test/regress/expected/float4.out index 92cfe073af..143f6d62fc 100644 --- a/src/test/regress/expected/float4.out +++ b/src/test/regress/expected/float4.out @@ -146,3 +146,4 @@ five|f1 |-1.23457e-20 (5 rows) +QUERY: DROP TABLE FLOAT4_TBL; diff --git a/src/test/regress/expected/float8.out b/src/test/regress/expected/float8.out index 45ae14a34c..78e375725c 100644 --- a/src/test/regress/expected/float8.out +++ b/src/test/regress/expected/float8.out @@ -223,3 +223,4 @@ five|f1 |-1.2345678901234e-200 (5 rows) +QUERY: DROP TABLE FLOAT8_TBL; diff --git a/src/test/regress/expected/int2.out b/src/test/regress/expected/int2.out index ef79f91fc9..fc875b5a41 100644 --- a/src/test/regress/expected/int2.out +++ b/src/test/regress/expected/int2.out @@ -7,7 +7,7 @@ WARN:pg_atoi: error in "34.5": can't parse ".5" QUERY: INSERT INTO INT2_TBL(f1) VALUES ('32767'); QUERY: INSERT INTO INT2_TBL(f1) VALUES ('-32767'); QUERY: INSERT INTO INT2_TBL(f1) VALUES ('100000'); -WARN:pg_atoi: error reading "100000": Math result not representable +WARN:pg_atoi: error reading "100000": Result too large QUERY: INSERT INTO INT2_TBL(f1) VALUES ('asdf'); WARN:pg_atoi: error in "asdf": can't parse "asdf" QUERY: SELECT '' AS five, INT2_TBL.*; @@ -204,3 +204,4 @@ five| f1| x |-32767|-16383 (5 rows) +QUERY: DROP TABLE INT2_TBL; diff --git a/src/test/regress/expected/int4.out b/src/test/regress/expected/int4.out index ed3b9f2d09..30eb67949b 100644 --- a/src/test/regress/expected/int4.out +++ b/src/test/regress/expected/int4.out @@ -7,7 +7,7 @@ WARN:pg_atoi: error in "34.5": can't parse ".5" QUERY: INSERT INTO INT4_TBL(f1) VALUES ('2147483647'); QUERY: INSERT INTO INT4_TBL(f1) VALUES ('-2147483647'); QUERY: INSERT INTO INT4_TBL(f1) VALUES ('1000000000000'); -WARN:pg_atoi: error reading "1000000000000": Math result not representable +WARN:pg_atoi: error reading "1000000000000": Result too large QUERY: INSERT INTO INT4_TBL(f1) VALUES ('asdf'); WARN:pg_atoi: error in "asdf": can't parse "asdf" QUERY: SELECT '' AS five, INT4_TBL.*; @@ -276,3 +276,4 @@ three 3 (1 row) +QUERY: DROP TABLE INT4_TBL; diff --git a/src/test/regress/expected/oid.out b/src/test/regress/expected/oid.out index c7f413c411..ad6f783240 100644 --- a/src/test/regress/expected/oid.out +++ b/src/test/regress/expected/oid.out @@ -61,3 +61,4 @@ one| f1 |1235 (1 row) +QUERY: DROP TABLE OID_TBL; diff --git a/src/test/regress/expected/oidint2.out b/src/test/regress/expected/oidint2.out index 14cb48ef9e..effcd28bb3 100644 --- a/src/test/regress/expected/oidint2.out +++ b/src/test/regress/expected/oidint2.out @@ -4,7 +4,7 @@ QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('1235/9873'); QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('987/-1234'); QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456'); QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('123456/123456'); -WARN:pg_atoi: error reading "123456": Math result not representable +WARN:pg_atoi: error reading "123456": Result too large QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES (''); QUERY: INSERT INTO OIDINT2_TBL(f1) VALUES ('asdfasd'); WARN:pg_atoi: error in "asdfasd": can't parse "asdfasd" @@ -63,3 +63,4 @@ one|f1 |123456/0 (1 row) +QUERY: DROP TABLE OIDINT2_TBL; diff --git a/src/test/regress/expected/oidint4.out b/src/test/regress/expected/oidint4.out index 53f34c3462..ad3b25ee93 100644 --- a/src/test/regress/expected/oidint4.out +++ b/src/test/regress/expected/oidint4.out @@ -4,7 +4,7 @@ QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('1235/9873'); QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('987/-1234'); QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456'); QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('123456/1234568901234567890'); -WARN:pg_atoi: error reading "1234568901234567890": Math result not representable +WARN:pg_atoi: error reading "1234568901234567890": Result too large QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES (''); QUERY: INSERT INTO OIDINT4_TBL(f1) VALUES ('asdfasd'); WARN:pg_atoi: error in "asdfasd": can't parse "asdfasd" @@ -63,3 +63,4 @@ one|f1 |123456/0 (1 row) +QUERY: DROP TABLE OIDINT4_TBL; diff --git a/src/test/regress/expected/oidname.out b/src/test/regress/expected/oidname.out index eb57399816..fddf7b8ce3 100644 --- a/src/test/regress/expected/oidname.out +++ b/src/test/regress/expected/oidname.out @@ -60,3 +60,4 @@ two|f1 |123456,abcdefghijklmnopqrsutvwyz (2 rows) +QUERY: DROP TABLE OIDNAME_TBL; diff --git a/src/test/regress/expected/point.out b/src/test/regress/expected/point.out index 4ee7cbb424..547b2f521a 100644 --- a/src/test/regress/expected/point.out +++ b/src/test/regress/expected/point.out @@ -207,3 +207,4 @@ three|f1 |f1 |(5.1,34.5)|(10,10) (3 rows) +QUERY: DROP TABLE POINT_TBL; diff --git a/src/test/regress/input/copy.source b/src/test/regress/input/copy.source index 3cc0bf5a83..6cdc671436 100644 --- a/src/test/regress/input/copy.source +++ b/src/test/regress/input/copy.source @@ -6,49 +6,49 @@ -- CLASS POPULATION -- (any resemblance to real life is purely coincidental) -- -COPY onek FROM '_CWD_/../data/onek.data'; +COPY onek FROM '_CWD_/data/onek.data'; -COPY onek TO '_OBJWD_/results/onek.data'; +COPY onek TO '_CWD_/results/onek.data'; DELETE FROM onek; -COPY onek FROM '_OBJWD_/results/onek.data'; +COPY onek FROM '_CWD_/results/onek.data'; -COPY tenk1 FROM '_CWD_/../data/tenk.data'; +COPY tenk1 FROM '_CWD_/data/tenk.data'; -COPY slow_emp4000 FROM '_CWD_/../data/rect.data'; +COPY slow_emp4000 FROM '_CWD_/data/rect.data'; -COPY person FROM '_CWD_/../data/person.data'; +COPY person FROM '_CWD_/data/person.data'; -COPY emp FROM '_CWD_/../data/emp.data'; +COPY emp FROM '_CWD_/data/emp.data'; -COPY student FROM '_CWD_/../data/student.data'; +COPY student FROM '_CWD_/data/student.data'; -COPY stud_emp FROM '_CWD_/../data/stud_emp.data'; +COPY stud_emp FROM '_CWD_/data/stud_emp.data'; -COPY road FROM '_CWD_/../data/streets.data'; +COPY road FROM '_CWD_/data/streets.data'; -COPY real_city FROM '_CWD_/../data/real_city.data'; +COPY real_city FROM '_CWD_/data/real_city.data'; -COPY hash_i4_heap FROM '_CWD_/../data/hash.data'; +COPY hash_i4_heap FROM '_CWD_/data/hash.data'; -COPY hash_c16_heap FROM '_CWD_/../data/hash.data'; +COPY hash_c16_heap FROM '_CWD_/data/hash.data'; -COPY hash_txt_heap FROM '_CWD_/../data/hash.data'; +COPY hash_txt_heap FROM '_CWD_/data/hash.data'; -COPY hash_f8_heap FROM '_CWD_/../data/hash.data'; +COPY hash_f8_heap FROM '_CWD_/data/hash.data'; -- the data in this file has a lot of duplicates in the index key -- fields, leading to long bucket chains and lots of table expansion. -- this is therefore a stress test of the bucket overflow code (unlike -- the data in hash.data, which has unique index keys). -- --- COPY hash_ovfl_heap FROM '_CWD_/../data/hashovfl.data'; +-- COPY hash_ovfl_heap FROM '_CWD_/data/hashovfl.data'; -COPY bt_i4_heap FROM '_CWD_/../data/desc.data'; +COPY bt_i4_heap FROM '_CWD_/data/desc.data'; -COPY bt_c16_heap FROM '_CWD_/../data/hash.data'; +COPY bt_c16_heap FROM '_CWD_/data/hash.data'; -COPY bt_txt_heap FROM '_CWD_/../data/desc.data'; +COPY bt_txt_heap FROM '_CWD_/data/desc.data'; -COPY bt_f8_heap FROM '_CWD_/../data/hash.data'; +COPY bt_f8_heap FROM '_CWD_/data/hash.data'; diff --git a/src/test/regress/output/copy.source b/src/test/regress/output/copy.source index dd620217f3..d2ad50bc53 100644 --- a/src/test/regress/output/copy.source +++ b/src/test/regress/output/copy.source @@ -1,4 +1,7 @@ QUERY: COPY onek FROM '_CWD_/data/onek.data'; +QUERY: COPY onek TO '_CWD_/results/onek.data'; +QUERY: DELETE FROM onek; +QUERY: COPY onek FROM '_CWD_/results/onek.data'; QUERY: COPY tenk1 FROM '_CWD_/data/tenk.data'; QUERY: COPY slow_emp4000 FROM '_CWD_/data/rect.data'; QUERY: COPY person FROM '_CWD_/data/person.data'; -- 2.40.0