Re: 9.3: bug related to json

From: Torsten Förtsch <torsten(dot)foertsch(at)gmx(dot)net>
To: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: 9.3: bug related to json
Date: 2015-02-25 08:40:34
Message-ID: 54ED8A82.2040405@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 25/02/15 07:34, David G Johnston wrote:
> Torsten Förtsch wrote
>> > Is there anything similar for JSON scalars?
> IDK, but have you tried "::text"?

yes. Here is the difference

select * from (values (('{"a":"b"}'::json -> 'a')::text),
('{"a":"b"}'::json ->> 'a')) t;
column1
---------
"b"
b

Torsten

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2015-02-25 09:12:48 Re: Sequences not moved to new tablespace
Previous Message Torsten Förtsch 2015-02-25 08:35:50 Re: 9.3: bug related to json