Re: bug in jsonb_set porstgresql 5.5

Поиск
Список
Период
Сортировка
От Thomas Kellerer
Тема Re: bug in jsonb_set porstgresql 5.5
Дата
Msg-id p6mopi$vc8$1@blaine.gmane.org
обсуждение исходный текст
Ответ на bug in jsonb_set porstgresql 5.5  (Pascal Barbedor <pbarbedor@blset.com>)
Список pgsql-bugs
Pascal Barbedor schrieb am 22.02.2018 um 14:38:
> I noticed a problem with a jsonb field and jsonb_set function
>
> - table1 is a table with *history* a jsonb field, and *obs* a text field which is null
> 
> Those three instructions were sent to postgresql
> 
> 1- this one is ok, set the field to an empty object
> *update table1 set history=‘{}’*
> 
> 2- this one is ok, creates a key q1 initialized at an empty object
> *update table1 set history=jsonb_set(history,’{q1}’, ‘{}’)*
>
> *3- this one resets completely the jsonb field, not only the key obs is not set to null but the entire jsonb field is
nownull*
 
> *
> *
> *update table1 set history=jsonb_set(history,’{q1,obs}’, to_jsonb(obs))*
> 
> this is on postgresql 5.5

There is no PostgreSQL 5.5 (and never was if I'm not mistaken)





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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: bug in jsonb_set porstgresql 5.5
Следующее
От: Pascal Barbedor
Дата:
Сообщение: Re: bug in jsonb_set postgresql 5.5