BUG #15763: JSON nulls not handled properly

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: jacobcrell(at)gmail(dot)com
Subject: BUG #15763: JSON nulls not handled properly
Date: 2019-04-16 19:13:13
Message-ID: 15763-200acd20c49eeff5@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: 15763
Logged by: Jacob Crell
Email address: jacobcrell(at)gmail(dot)com
PostgreSQL version: 9.6.8
Operating system: AWS RDS
Description:

SELECT '{"test":null}'::json->>'test' will return a null
SELECT '{"test":null}'::json->'test' will return a string 'null'
The 2nd option seems like it should also return a null.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2019-04-16 19:29:00 Re: BUG #15763: JSON nulls not handled properly
Previous Message Dingyuan Wang 2019-04-16 16:54:04 Re: BUG #15758: regr_* return wrong answers for some valid data