aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-04-01 12:25:17 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-04-01 12:25:17 -0400
commita067b50470cf7fda77dd28b03519f2483c2322bf (patch)
tree9cfc754c648d57da985aff45558d0cd836632ee4 /src
parent2306696004dc6b9259a45e76522c01d6ee5d2ee7 (diff)
downloadpostgresql-a067b50470cf7fda77dd28b03519f2483c2322bf.tar.gz
postgresql-a067b50470cf7fda77dd28b03519f2483c2322bf.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/test/regress/expected/box.out6
-rw-r--r--src/test/regress/sql/box.sql2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/test/regress/expected/box.out b/src/test/regress/expected/box.out
index 7e251a3a569..5f8b9455e8b 100644
--- a/src/test/regress/expected/box.out
+++ b/src/test/regress/expected/box.out
@@ -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)
diff --git a/src/test/regress/sql/box.sql b/src/test/regress/sql/box.sql
index 1c9e52e0a38..128a0169635 100644
--- a/src/test/regress/sql/box.sql
+++ b/src/test/regress/sql/box.sql
@@ -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)'),