mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Get rid of minus zero in box regression test.
Commit acdf2a8b added a test case involving minus zero as a box endpoint. This is not very portable, as evidenced by the several older buildfarm members that are failing on the test because they print minus zero as just "0". If there were any significant reason to test this behavior, we could consider carrying a separate expected-file; but it doesn't look to me like there's adequate justification to accept such a maintenance burden. Just change the test to use plain zero, instead.
This commit is contained in:
parent
2306696004
commit
a067b50470
@ -225,7 +225,7 @@ INSERT INTO box_temp
|
||||
CREATE INDEX box_spgist ON box_temp USING spgist (f1);
|
||||
INSERT INTO box_temp
|
||||
VALUES (NULL),
|
||||
('(-0,0)(0,100)'),
|
||||
('(0,0)(0,100)'),
|
||||
('(-3,4.3333333333)(40,1)'),
|
||||
('(0,100)(0,infinity)'),
|
||||
('(-infinity,0)(0,infinity)'),
|
||||
@ -238,7 +238,7 @@ SELECT * FROM box_temp WHERE f1 << '(10,20),(30,40)';
|
||||
(4,4),(2,2)
|
||||
(6,6),(3,3)
|
||||
(8,8),(4,4)
|
||||
(-0,100),(0,0)
|
||||
(0,100),(0,0)
|
||||
(0,Infinity),(0,100)
|
||||
(0,Infinity),(-Infinity,0)
|
||||
(7 rows)
|
||||
@ -258,7 +258,7 @@ SELECT * FROM box_temp WHERE f1 &< '(10,4.333334),(5,100)';
|
||||
(6,6),(3,3)
|
||||
(8,8),(4,4)
|
||||
(10,10),(5,5)
|
||||
(-0,100),(0,0)
|
||||
(0,100),(0,0)
|
||||
(0,Infinity),(0,100)
|
||||
(0,Infinity),(-Infinity,0)
|
||||
(8 rows)
|
||||
|
@ -132,7 +132,7 @@ CREATE INDEX box_spgist ON box_temp USING spgist (f1);
|
||||
|
||||
INSERT INTO box_temp
|
||||
VALUES (NULL),
|
||||
('(-0,0)(0,100)'),
|
||||
('(0,0)(0,100)'),
|
||||
('(-3,4.3333333333)(40,1)'),
|
||||
('(0,100)(0,infinity)'),
|
||||
('(-infinity,0)(0,infinity)'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user