From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: urip@ensilo.com
Subject: BUG #15260: When saving json object to a json column bigInteger value is saved wrong
Date: Tue, 03 Jul 2018 09:13:43 +0000
Message-ID: <153060922319.13258.1825649892372139910@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15260
Logged by: Uri Parush
Email address: urip@ensilo.com
PostgreSQL version: 9.6.0
Operating system: windows 10
Description:
Hi, I think I found a bug in PostgreSQL json column type.
I created the next table:
CREATE TABLE public."Dummy"
(
json json
)
And insert the next data:
INSERT INTO public."Dummy"(
json)
VALUES (
'{ "ID": 9059650307334996772}'
);
The data that was saved was incorrect:
{"ID":9059650307334997000}
Looks like PostgreSQL round the number in the insertion.
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-bugs@postgresql.org
Cc: noreply@postgresql.org, urip@ensilo.com
Subject: Re: BUG #15260: When saving json object to a json column bigInteger value is saved wrong
In-Reply-To: <153060922319.13258.1825649892372139910@wrigleys.postgresql.org>
References: <153060922319.13258.1825649892372139910@wrigleys.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