Content-Length: 296036 | pFad | http://github.com/postgrespro/postgres_cluster/commit/e4300a3552b104f54ec781dd23cfcf96252ec5c1

DB Avoid platform-dependent output from Data::Dumper. · postgrespro/postgres_cluster@e4300a3 · GitHub
Skip to content

Commit e4300a3

Browse files
committed
Avoid platform-dependent output from Data::Dumper.
Per buildfarm, the output from Data::Dumper for an IEEE infinity is platform-dependent (e.g. "inf" vs "Inf"). Just skip that one test case in the plperlu test; testing it on the plperl side is coverage enough. Fixes issue in commit 1731e37.
1 parent 1731e37 commit e4300a3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

contrib/jsonb_plperl/expected/jsonb_plperlu.out

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,8 @@ INFO: $VAR1 = '1';
7878
1
7979
(1 row)
8080

81-
SELECT roundtrip('1E+131071');
82-
INFO: $VAR1 = 'inf';
83-
ERROR: cannot convert infinity to jsonb
84-
CONTEXT: PL/Perl function "roundtrip"
81+
-- skip because Data::Dumper produces a platform-dependent spelling of infinity
82+
-- SELECT roundtrip('1E+131071');
8583
SELECT roundtrip('-1');
8684
INFO: $VAR1 = '-1';
8785
roundtrip

contrib/jsonb_plperl/sql/jsonb_plperlu.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ $$;
6161

6262
SELECT roundtrip('null') is null;
6363
SELECT roundtrip('1');
64-
SELECT roundtrip('1E+131071');
64+
-- skip because Data::Dumper produces a platform-dependent spelling of infinity
65+
-- SELECT roundtrip('1E+131071');
6566
SELECT roundtrip('-1');
6667
SELECT roundtrip('1.2');
6768
SELECT roundtrip('-1.2');

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/e4300a3552b104f54ec781dd23cfcf96252ec5c1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy