pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14366: jsonb_set() error when modify array element
3+ messages / 3 participants
[nested] [flat]
* BUG #14366: jsonb_set() error when modify array element
@ 2016-10-12 06:53 bluevaley@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: bluevaley@gmail.com @ 2016-10-12 06:53 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14366
Logged by: peng sun
Email address: bluevaley@gmail.com
PostgreSQL version: 9.6.0
Operating system: win8.1
Description:
select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]', false);
in 9.6, got:
[2, null, 3]
in 9.5.4, got:
[[2, 3, 4], 2, null, 3]
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14366: jsonb_set() error when modify array element
@ 2016-10-13 04:26 Tom Lane <tgl@sss.pgh.pa.us>
parent: bluevaley@gmail.com
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2016-10-13 04:26 UTC (permalink / raw)
To: bluevaley@gmail.com; +Cc: pgsql-bugs
bluevaley@gmail.com writes:
> The following bug has been logged on the website:
> Bug reference: 14366
> Logged by: peng sun
> Email address: bluevaley@gmail.com
> PostgreSQL version: 9.6.0
> Operating system: win8.1
> Description:
> select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]', false);
> in 9.6, got:
> [2, null, 3]
> in 9.5.4, got:
> [[2, 3, 4], 2, null, 3]
Yeah, this is broken. Fixed, thanks for the report!
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #14366: jsonb_set() error when modify array element
@ 2016-10-13 04:33 Michael Paquier <michael.paquier@gmail.com>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Michael Paquier @ 2016-10-13 04:33 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
On Thu, Oct 13, 2016 at 1:26 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]', false);
>> in 9.6, got:
>> [2, null, 3]
>> in 9.5.4, got:
>> [[2, 3, 4], 2, null, 3]
>
> Yeah, this is broken. Fixed, thanks for the report!
Too late I guess..
--
Michael
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2016-10-13 04:33 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-10-12 06:53 BUG #14366: jsonb_set() error when modify array element bluevaley@gmail.com
2016-10-13 04:26 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-10-13 04:33 ` Michael Paquier <michael.paquier@gmail.com>
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