BUG #13506: jsonb || operator does not work

From: gregoire(dot)hubert(at)pragmafabrik(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #13506: jsonb || operator does not work
Date: 2015-07-20 15:58:38
Message-ID: 20150720155838.9706.10338@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 13506
Logged by: Grégoire HUBERT
Email address: gregoire(dot)hubert(at)pragmafabrik(dot)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}'

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2015-07-20 16:33:15 Re: [BUGS] object_classes array is broken, again
Previous Message Tom Lane 2015-07-20 13:49:13 Re: [HACKERS] object_classes array is broken, again