Re: BUG #9519: Allows storing scalar json, but fails when querying - Mailing list pgsql-bugs

From John R Pierce
Subject Re: BUG #9519: Allows storing scalar json, but fails when querying
Date
Msg-id 531E19CF.9060003@hogranch.com
Whole thread Raw
In response to Re: BUG #9519: Allows storing scalar json, but fails when querying  (Marko Tiikkaja <marko@joh.to>)
List pgsql-bugs
On 3/10/2014 12:52 PM, Marko Tiikkaja wrote:
> On 3/10/14, 4:09 PM, alf.kristian@gmail.com wrote:
>> I think the insert should fail, since '1' is not valid JSON.
>
> It's a valid "JSON value", it's just not an object.

then why does querying it fail ?



--
john r pierce                                      37N 122W
somewhere on the middle of the left coast

pgsql-bugs by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: BUG #9519: Allows storing scalar json, but fails when querying
Next
From: Alf Kristian Støyle
Date:
Subject: Re: BUG #9519: Allows storing scalar json, but fails when querying