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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bluevaley(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14366: jsonb_set() error when modify array element
Date: 2016-10-13 04:26:49
Message-ID: 1269.1476332809@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

bluevaley(at)gmail(dot)com writes:
> The following bug has been logged on the website:
> Bug reference: 14366
> Logged by: peng sun
> Email address: bluevaley(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2016-10-13 04:33:28 Re: BUG #14366: jsonb_set() error when modify array element
Previous Message sunpeng 2016-10-13 00:43:32 Re: 9.6 bug: select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]',