From: David Gould <daveg@sonic.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: amutu@amutu.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13805: plpgsql execute using expression evaluate wrong
Date: Mon, 7 Dec 2015 23:24:48 -0800
Message-ID: <20151207232448.58fa8420@engels> (raw)
In-Reply-To: <14234.1449556599@sss.pgh.pa.us>
References: <20151208035444.5253.30717@wrigleys.postgresql.org>
<20151207220847.4da716e1@engels>
<14234.1449556599@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On Tue, 08 Dec 2015 01:36:39 -0500
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> The datetime input parser tends to consider most non-alphanumeric
> characters as being insignificant except as field separators. We could
> tighten that up, but I think we should tread pretty carefully for fear of
> breaking cases that used to work. A trivial example:
...
> regression=# select '1 mon$ 1 day'::interval;
> interval
> -------------
> 1 mon 1 day
> (1 row)
>
> Trying to decide which characters are legitimate noise and which
> aren't seems like a tarbaby best not to get stuck to :-(
# select '#!1!#month,?=~&(12$[day*() '::interval;
interval
---------------
1 mon 12 days
(1 row)
I feel so ... dirty....
-dg
--
David Gould 510 282 0869 daveg@sonic.net
If simplicity worked, the world would be overrun with insects.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: daveg@sonic.net, tgl@sss.pgh.pa.us, amutu@amutu.com
Subject: Re: BUG #13805: plpgsql execute using expression evaluate wrong
In-Reply-To: <20151207232448.58fa8420@engels>
References: <20151208035444.5253.30717@wrigleys.postgresql.org> <20151207220847.4da716e1@engels> <14234.1449556599@sss.pgh.pa.us> <20151207232448.58fa8420@engels>
* 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