Re: BUG #14366: jsonb_set() error when modify array element - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #14366: jsonb_set() error when modify array element
Date
Msg-id CAB7nPqS9Sxzrg7oV5o0xj3JHpuH9Z=NaKJiARhs8Zxq96uWayA@mail.gmail.com
Whole thread Raw
In response to Re: BUG #14366: jsonb_set() error when modify array element  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #14366: jsonb_set() error when modify array element
Next
From: Heikki Linnakangas
Date:
Subject: Re: BUG #14344: string_agg(DISTINCT ..) crash