JSON array is not updated if updating with empty array

Поиск
Список
Период
Сортировка
От Radics Geza
Тема JSON array is not updated if updating with empty array
Дата
Msg-id CAJFbfO84H34Fqyxgk2S8erN+FarooDeKS+vMM1dvvs9gPkq5oA@mail.gmail.com
обсуждение исходный текст
Ответы Re: JSON array is not updated if updating with empty array  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Re: JSON array is not updated if updating with empty array  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-bugs
Json column is not updated if the update is an empty array '[]'.

UPDATE table SET "jsonbcol" = '[{"a":1}]';
UPDATE table SET "jsonbcol = '[]' RETURNING "jsonbcol";

jsonbcol
------------
 [{"a": 1}]
(1 row)

It worked in postgres 9.6, but not in 11.7 / 12.2

thanks!

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

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #16287: 'Server doesn't listen' after setting 'timezone' to "America/Detroit US/Michigan"
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: BUG #16287: 'Server doesn't listen' after setting 'timezone' to"America/Detroit US/Michigan"