pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix jsonb_plperl to convert Perl UV values correctly.
Date: Mon, 18 Jun 2018 21:40:14 +0000
Message-ID: <E1fV1sk-0000Ma-7O@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1fV1sk-0000Ma-7O@gemulon.postgresql.org>
Permalink:  ../E1fV1sk-0000Ma-7O@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fV1sk-0000Ma-7O@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix jsonb_plperl to convert Perl UV values correctly.
  In-Reply-To: <E1fV1sk-0000Ma-7O@gemulon.postgresql.org>
  References: <E1fV1sk-0000Ma-7O@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox