Desired behavior for || (jsonb_concat)

From: Seamus Abshere <seamus(at)abshere(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Desired behavior for || (jsonb_concat)
Date: 2017-07-06 22:25:24
Message-ID: 1499379924.87973.1032871472.55431938@webmail.messagingengine.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi,

# select '{"a":1}'::jsonb || null;
?column?
----------
null
(1 row)

Is there a theoretical reason that this has to return null as opposed to
just {"a":1}?

Thanks,
Seamus

--
Seamus Abshere, SCEA
https://github.com/seamusabshere
https://linkedin.com/in/seamusabshere
https://www.faraday.io

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2017-07-06 22:48:47 Re: Desired behavior for || (jsonb_concat)
Previous Message David G. Johnston 2017-07-06 22:04:33 psql doesn't pass on exported shell environment functions