9.6 bug: select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]',

From: sunpeng <bluevaley(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: 9.6 bug: select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]',
Date: 2016-10-12 06:57:11
Message-ID: CAOYKhLq8yvs7kEvEyb4qV2RjG5Gs45BdPhzEuApvqUL+apsuow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

in 9.6,
select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]',
got:
[2, null, 3]
but in 9.6.5, got:
[[2, 3, 4], 2, null, 3]

peng

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2016-10-12 07:00:06 Re: 9.6 bug: select jsonb_set('[{"f1":1,"f2":null},2,null,3]', '{0}','[2,3,4]',
Previous Message bluevaley 2016-10-12 06:53:49 BUG #14366: jsonb_set() error when modify array element