Fix jsonb_plperl to convert Perl UV values correctly.
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| contrib/jsonb_plperl/expected/jsonb_plperl.out | modified | +15 −1 |
| contrib/jsonb_plperl/expected/jsonb_plperlu.out | modified | +15 −1 |
| contrib/jsonb_plperl/jsonb_plperl.c | modified | +18 −1 |
| contrib/jsonb_plperl/sql/jsonb_plperl.sql | modified | +12 −0 |
| contrib/jsonb_plperl/sql/jsonb_plperlu.sql | modified | +12 −0 |
Discussion
- Transform for pl/perl 62 messages · 2017-10-24 → 2018-06-18