Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZHF3X-00085C-Mn for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jul 2015 17:40:47 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZHF3W-0002b9-R0 for pgsql-bugs@arkaria.postgresql.org; Mon, 20 Jul 2015 17:40:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZHDT9-0005ZJ-HO for pgsql-bugs@postgresql.org; Mon, 20 Jul 2015 15:59:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZHDT6-0000ra-2j for pgsql-bugs@postgresql.org; Mon, 20 Jul 2015 15:59:06 +0000 MIME-Version: 1.0 Subject: BUG #13506: jsonb || operator does not work To: pgsql-bugs@postgresql.org From: gregoire.hubert@pragmafabrik.com Date: Mon, 20 Jul 2015 15:58:38 +0000 Message-ID: <20150720155838.9706.10338@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 The following bug has been logged on the website: Bug reference: 13506 Logged by: Grégoire HUBERT Email address: gregoire.hubert@pragmafabrik.com PostgreSQL version: 9.5alpha1 Operating system: debian jessie Description: select val->'a'||val->'c' from (values ($j${"a": {"b": 2}, "c": {"d": 3}}$j$::jsonb)) a (val); ┌──────────┐ │ ?column? │ ├──────────┤ │ {"d": 3} │ └──────────┘ (1 row) I think this should return '{"b": 2, "d": 3}' -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs