json/jsonb inconsistence - 2

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема json/jsonb inconsistence - 2
Дата
Msg-id 53872176.3000609@sigaev.ru
обсуждение исходный текст
Ответы Re: json/jsonb inconsistence - 2
Список pgsql-hackers
postgres=# select  '["\u0000"]'::json->0; ?column?
---------- "\u0000"
(1 row)

Time: 1,294 ms
postgres=# select  '["\u0000"]'::jsonb->0; ?column?
----------- "\\u0000"
(1 row)

It seems to me that escape_json() is wrongly used in jsonb_put_escaped_value(), 
right name of escape_json() is a escape_to_json().

-- 
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
  WWW: http://www.sigaev.ru/
 



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

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: json/jsonb inconsistence
Следующее
От: Rahila Syed
Дата:
Сообщение: Re: Compression of full-page-writes