Re: BUG #9519: Allows storing scalar json, but fails when querying

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #9519: Allows storing scalar json, but fails when querying
Date: 2014-03-10 20:00:15
Message-ID: 531E19CF.9060003@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 3/10/2014 12:52 PM, Marko Tiikkaja wrote:
> On 3/10/14, 4:09 PM, alf(dot)kristian(at)gmail(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alf Kristian Støyle 2014-03-10 20:39:45 Re: BUG #9519: Allows storing scalar json, but fails when querying
Previous Message Marko Tiikkaja 2014-03-10 19:52:01 Re: BUG #9519: Allows storing scalar json, but fails when querying