Skip to content

Commit 18622ca

Browse files
committed
Remove test case that doesn't work with --disable-integer-timestamps.
Commits a7145f6 et al. added a test to verify integer overflow detection in interval_mul. That only applies with integer timestamps, of course, so it's problematic in pre-v10 branches where we supported float timestamps. The test was only marginally worth the trouble to begin with, so just remove it in those branches. Per buildfarm. Discussion: https://postgr.es/m/6437.1573319193@sss.pgh.pa.us
1 parent 1bd67d5 commit 18622ca

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/test/regress/expected/interval.out

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,6 @@ INSERT INTO INTERVAL_TBL_OF (f1) VALUES ('-2147483648 years');
232232
ERROR: interval out of range
233233
LINE 1: INSERT INTO INTERVAL_TBL_OF (f1) VALUES ('-2147483648 years'...
234234
^
235-
-- Test edge-case overflow detection in interval multiplication
236-
select extract(epoch from '256 microseconds'::interval * (2^55)::float8);
237-
ERROR: interval out of range
238235
SELECT r1.*, r2.*
239236
FROM INTERVAL_TBL_OF r1, INTERVAL_TBL_OF r2
240237
WHERE r1.f1 > r2.f1

src/test/regress/sql/interval.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ INSERT INTO INTERVAL_TBL_OF (f1) VALUES ('-2147483649 days');
7373
INSERT INTO INTERVAL_TBL_OF (f1) VALUES ('2147483647 years');
7474
INSERT INTO INTERVAL_TBL_OF (f1) VALUES ('-2147483648 years');
7575

76-
-- Test edge-case overflow detection in interval multiplication
77-
select extract(epoch from '256 microseconds'::interval * (2^55)::float8);
78-
7976
SELECT r1.*, r2.*
8077
FROM INTERVAL_TBL_OF r1, INTERVAL_TBL_OF r2
8178
WHERE r1.f1 > r2.f1

0 commit comments

Comments
 (0)