pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: bouda@edookit.com
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-hackers@postgresql.org
Subject: Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON
Date: Sun, 30 Nov 2014 16:48:14 -0500
Message-ID: <547B909E.4010801@dunslane.net> (raw)
In-Reply-To: <29018.1417383100@sss.pgh.pa.us>
References: <20141126081059.15510.5034@wrigleys.postgresql.org>
	<15817.1417018789@sss.pgh.pa.us>
	<54760440.2080501@dunslane.net>
	<547B3FC4.8080509@dunslane.net>
	<9580.1417365900@sss.pgh.pa.us>
	<547B800F.60309@dunslane.net>
	<29018.1417383100@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>


On 11/30/2014 04:31 PM, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> OK, here's the patch.
> Can we make IsValidJsonNumber() take a "const char *"?  Also its
> comment should specify that it doesn't require nul-terminated
> input, if indeed it doesn't.  Otherwise +1.
>
> 			


Then I have to cast away the const-ness when I assign it inside the 
function. Constifying the whole API would be a rather larger project, I 
suspect, assuming it's possible.

cheers

andrew


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (12+ messages)  latest in thread

Message-ID: <547B909E.4010801@dunslane.net>
Permalink:  ../547B909E.4010801@dunslane.net/
Also on:    postgresql.org/message-id/547B909E.4010801@dunslane.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: andrew@dunslane.net, tgl@sss.pgh.pa.us, bouda@edookit.com, pgsql-hackers@postgresql.org
  Subject: Re: [BUGS] BUG #12070: hstore extension: hstore_to_json_loose produces invalid JSON
  In-Reply-To: <547B909E.4010801@dunslane.net>
  References: <20141126081059.15510.5034@wrigleys.postgresql.org> <15817.1417018789@sss.pgh.pa.us> <54760440.2080501@dunslane.net> <547B3FC4.8080509@dunslane.net> <9580.1417365900@sss.pgh.pa.us> <547B800F.60309@dunslane.net> <29018.1417383100@sss.pgh.pa.us> <547B909E.4010801@dunslane.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox