Re: potential bug in JSON

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: potential bug in JSON
Дата
Msg-id 51A4D2F4.9010107@agliodbs.com
обсуждение исходный текст
Ответ на potential bug in JSON  (Szymon Guz <mabewlun@gmail.com>)
Ответы Re: potential bug in JSON
Список pgsql-hackers
On 05/28/2013 08:38 AM, Szymon Guz wrote:
> I've found a potential bug. Why the "->" operator returns JSON instead of
> TEXT? It doesn't make sens for me, and the documentation doesn't inform
> about that.

Yes, it most certainly does:
http://www.postgresql.org/docs/9.3/static/functions-json.html

If you want to get text, use the ->> operator.


-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: potential bug in JSON
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Extent Locks