Fix jsonb_plperl to convert Perl UV values correctly.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 93b6e03ab4794272986a11a427c6c391eafa5dea
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-06-18T21:39:57Z
Releases: 11.0
Fix jsonb_plperl to convert Perl UV values correctly.

Values greater than IV_MAX were incorrectly converted to SQL,
for instance ~0 would become -1 rather than 18446744073709551615
(on a 64-bit machine).

Dagfinn Ilmari Mannsåker, adjusted a bit by me

Discussion: https://postgr.es/m/d8jtvskjzzs.fsf@dalvik.ping.uio.no

Files

Discussion