From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Fix jsonb_plperl to convert Perl UV values correctly. |
Date: | 2018-06-18 21:40:14 |
Message-ID: | E1fV1sk-0000Ma-7O@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/93b6e03ab4794272986a11a427c6c391eafa5dea
Modified Files
--------------
contrib/jsonb_plperl/expected/jsonb_plperl.out | 16 +++++++++++++++-
contrib/jsonb_plperl/expected/jsonb_plperlu.out | 16 +++++++++++++++-
contrib/jsonb_plperl/jsonb_plperl.c | 19 ++++++++++++++++++-
contrib/jsonb_plperl/sql/jsonb_plperl.sql | 12 ++++++++++++
contrib/jsonb_plperl/sql/jsonb_plperlu.sql | 12 ++++++++++++
5 files changed, 72 insertions(+), 3 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2018-06-19 00:07:49 | pgsql: Track new configure flags introduced for version 11 in pg_config |
Previous Message | Tom Lane | 2018-06-18 19:55:19 | pgsql: Fix contrib/hstore_plperl to look through scalar refs. |