From: | jian he <jian(dot)universality(at)gmail(dot)com> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Cc: | Amit Langote <amitlangote09(at)gmail(dot)com> |
Subject: | sql/json miscellaneous issue |
Date: | 2024-06-24 10:04:47 |
Message-ID: | CACJufxEHgu8OWwm_+AXi1x9Kw4kjSX9wVLet2vTpGt76Q4Sf-w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
hi.
the following two queries should return the same result?
SELECT * FROM JSON_query (jsonb 'null', '$' returning jsonb);
SELECT * FROM JSON_value (jsonb 'null', '$' returning jsonb);
I've tried a patch to implement it.
(i raised the issue at
https://www.postgresql.org/message-id/CACJufxFWiCnG3Q7f0m_GdrytPbv29A5OWngCDwKVjcftwzHbTA%40mail.gmail.com
i think a new thread would be more appropriate).
current json_value doc:
"Note that scalar strings returned by json_value always have their
quotes removed, equivalent to specifying OMIT QUOTES in json_query."
i think there are two exceptions: when the returning data types are
jsonb or json.
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2024-06-24 10:29:38 | Injection point locking |
Previous Message | Richard Guo | 2024-06-24 09:59:03 | Re: Support "Right Semi Join" plan shapes |