Re: BUG #14449: inconsistency in behaviour of json/jsonb returning functions for sql NULL and json NULL values

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: BUG #14449: inconsistency in behaviour of json/jsonb returning functions for sql NULL and json NULL values
Дата
Msg-id CAKFQuwYEOCzZfF-SfrrmdVpJcGFtZKkz_vtiv0GG3hk=kEWGcQ@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #14449: inconsistency in behaviour of json/jsonb returning functions for sql NULL and json NULL values  (rainer.steinmueller@kit.edu)
Список pgsql-bugs
On Mon, Dec 5, 2016 at 10:53 AM, <rainer.steinmueller@kit.edu> wrote:

> The following bug has been logged on the website:
>
> Bug reference:      14449
> Logged by:          Rainer Steinm=C3=BCller
> Email address:      rainer.steinmueller@kit.edu
> PostgreSQL version: 9.6.1
> Operating system:   Debian 3.16.36-1+deb8u2 x86_64 GNU/Linux
> Description:
>
> # all the following sql statements are tested with psql.
> # try to cast or to convert a sql NULL value to json/jsonb null does not
> generate the desired result:
>
> net=3D> select to_jsonb(null::text);
>  to_jsonb
> ----------
>
> (1 row)
>

=E2=80=8BPrevious discussion on -hackers on this topic.

https://www.postgresql.org/message-id/CAFj8pRBdi4Ud-%3D8kfM28i7fa%3DB6t%3Dn=
FTM3UK5qNBm9TjazC99A%40mail.gmail.com

=E2=80=8BThe general conclusion is that the benefit of making this consiste=
nt
outweighs the effort to define that consistency and introduce a breakage in
compatibility.=E2=80=8B

David J.

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #14448: create table as values - type check skipped
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #14446: make_date with negative year