BUG #12620: JSONB seems to incorrectly handle escaped unicode

Поиск
Список
Период
Сортировка
От dgillis@dystillr.com
Тема BUG #12620: JSONB seems to incorrectly handle escaped unicode
Дата
Msg-id 20150121222609.32670.59262@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #12620: JSONB seems to incorrectly handle escaped unicode  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      12620
Logged by:          Duncan Gillis
Email address:      dgillis@dystillr.com
PostgreSQL version: 9.4.0
Operating system:   Mac OS X 10.10.1
Description:

When you give cast a string such as '"\\u0000"' as JSONB, it removes the
first slash. With plain JSON:

template1=# select '"\\u0000"'::json;
    json
------------
 "\\u0000"
(1 row)

Whereas with JSONB one of the slashes is gone:

template1=# select '"\\u0000"'::jsonb;
   jsonb
-----------
 "\u0000"
(1 row)

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pg_upgrade failure on Windows Server
Следующее
От: Asif Naeem
Дата:
Сообщение: Re: pg_upgrade failure on Windows Server