Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite4300a3

Browse files
committed
Avoid platform-dependent output from Data::Dumper.
Per buildfarm, the output from Data::Dumper for an IEEE infinityis platform-dependent (e.g. "inf" vs "Inf"). Just skip that onetest case in the plperlu test; testing it on the plperl side iscoverage enough. Fixes issue in commit1731e37.
1 parent1731e37 commite4300a3

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') isnull;
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)

[8]ページ先頭

©2009-2025 Movatter.jp