Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WN6NJ-0001TN-62 for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Mar 2014 20:00:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WN6NI-0001uV-Lm for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Mar 2014 20:00:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WN6NH-0001uO-Iy for pgsql-bugs@postgresql.org; Mon, 10 Mar 2014 20:00:35 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WN6N9-0006jY-UN for pgsql-bugs@postgresql.org; Mon, 10 Mar 2014 20:00:34 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id s2AK0Ke02112 for ; Mon, 10 Mar 2014 13:00:20 -0700 Message-ID: <531E19CF.9060003@hogranch.com> Date: Mon, 10 Mar 2014 13:00:15 -0700 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #9519: Allows storing scalar json, but fails when querying References: <20140310150952.398.53642@wrigleys.postgresql.org> <531E17E1.9020009@joh.to> In-Reply-To: <531E17E1.9020009@joh.to> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs