Re: Why don't we accept exponential format for integers? - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Why don't we accept exponential format for integers?
Date
Msg-id AANLkTinyi4NcR5Xz2TF_XAefsDO8V3p+n1jxbSOb6mue@mail.gmail.com
Whole thread Raw
In response to Re: Why don't we accept exponential format for integers?  (Josh Berkus <josh@agliodbs.com>)
List pgsql-hackers
On Fri, Dec 17, 2010 at 7:35 PM, Josh Berkus <josh@agliodbs.com> wrote:
>
>> Well, maybe. Also, giving the sort of feedback Josh seems to want
>> probably would not be nearly as easy as he seems to think, ISTM.
>
> Oh, I don't think it would be easy.  I can't think, right now, of a good
> way to do it.

I mean, it wouldn't be enormously difficult to look for something of
the form \d+(\.\d+)?e\d+ and give a different error message for that
case, like "scientific notation is not allowed for integer inputs",
but I don't think it's really worth it.  A person who can't figure it
out without that is probably more confused than we're going to be able
to fix with a one-line error message.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Tab completion for ALTER ... SET SCHEMA
Next
From: Andreas Karlsson
Date:
Subject: Re: Tab completion for ALTER ... SET SCHEMA