Get rid of minus zero in box regression test.
authorTom Lane
Fri, 1 Apr 2016 16:25:17 +0000 (12:25 -0400)
committerTom Lane
Fri, 1 Apr 2016 16:25:17 +0000 (12:25 -0400)
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.

src/test/regress/expected/box.out
src/test/regress/sql/box.sql

index 7e251a3a56981552490a1235227a5db6afc8db00..5f8b9455e8bf0504172ea1579b450bcefb824c4d 100644 (file)
@@ -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)
index 1c9e52e0a38ac368df9a91d27a1d461e9854cac2..128a016963520e854812922750ca850356f15a12 100644 (file)
@@ -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)'),