json/jsonb inconsistence - 2 - Mailing list pgsql-hackers

From Teodor Sigaev
Subject json/jsonb inconsistence - 2
Date
Msg-id 53872176.3000609@sigaev.ru
Whole thread Raw
Responses Re: json/jsonb inconsistence - 2  (Andrew Dunstan <andrew@dunslane.net>)
List 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 by date:

Previous
From: Teodor Sigaev
Date:
Subject: json/jsonb inconsistence
Next
From: Rahila Syed
Date:
Subject: Re: Compression of full-page-writes