Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1buXcI-0006e8-5r for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Oct 2016 04:27:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1buXcH-0006gD-OQ for pgsql-bugs@arkaria.postgresql.org; Thu, 13 Oct 2016 04:27:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buXbd-0005wv-Dd for pgsql-bugs@postgresql.org; Thu, 13 Oct 2016 04:26:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1buXbW-0007m5-Ty for pgsql-bugs@postgresql.org; Thu, 13 Oct 2016 04:26:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u9D4QnbC001270; Thu, 13 Oct 2016 00:26:49 -0400 From: Tom Lane To: bluevaley@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14366: jsonb_set() error when modify array element In-reply-to: <20161012065349.1412.47858@wrigleys.postgresql.org> References: <20161012065349.1412.47858@wrigleys.postgresql.org> Comments: In-reply-to bluevaley@gmail.com message dated "Wed, 12 Oct 2016 06:53:49 -0000" Date: Thu, 13 Oct 2016 00:26:49 -0400 Message-ID: <1269.1476332809@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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