From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ryan Kelly <rpkelly22@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: hstore parser incorrectly handles malformed input
Date: Thu, 26 Apr 2012 21:12:17 -0400
Message-ID: <19224.1335489137@sss.pgh.pa.us> (raw)
In-Reply-To: <12884.1335469833@sss.pgh.pa.us>
References: <20120426190513.GB31886@llserver.lakeliving.com>
<12884.1335469833@sss.pgh.pa.us>
I wrote:
> Ryan Kelly <rpkelly22@gmail.com> writes:
>> In my mind, all of these should have been rejected as erroneous input.
>> To that end, I have attached a patch which causes all of these inputs
>> to be rejected as invalid.
> Hm, I would have expected all three of these to result in "a" having
> an empty-string value. I see nothing in the hstore documentation
> suggesting that I must write a=>"" or some such to get an empty value,
Attached is an alternative patch that fixes it that way.
Does anybody else have an opinion as to which of these solutions is
more preferable? And should we regard this as a back-patchable bug
fix, or a definition change suitable only for HEAD?
regards, tom lane
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: tgl@sss.pgh.pa.us, rpkelly22@gmail.com
Subject: Re: hstore parser incorrectly handles malformed input
In-Reply-To: <19224.1335489137@sss.pgh.pa.us>
References: <20120426190513.GB31886@llserver.lakeliving.com> <12884.1335469833@sss.pgh.pa.us> <19224.1335489137@sss.pgh.pa.us>
* 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