Re: BUG #14366: jsonb_set() error when modify array element

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: bluevaley(at)gmail(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #14366: jsonb_set() error when modify array element
Date: 2016-10-13 04:33:28
Message-ID: CAB7nPqS9Sxzrg7oV5o0xj3JHpuH9Z=NaKJiARhs8Zxq96uWayA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Oct 13, 2016 at 1:26 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2016-10-13 07:59:17 Re: BUG #14344: string_agg(DISTINCT ..) crash
Previous Message Tom Lane 2016-10-13 04:26:49 Re: BUG #14366: jsonb_set() error when modify array element