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

From Josh Berkus
Subject Re: Why don't we accept exponential format for integers?
Date
Msg-id 4D0BDEBD.9010904@agliodbs.com
Whole thread Raw
In response to Re: Why don't we accept exponential format for integers?  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Why don't we accept exponential format for integers?
Re: Why don't we accept exponential format for integers?
Re: Why don't we accept exponential format for integers?
List pgsql-hackers
On 12/17/10 12:46 PM, Jeff Janes wrote:
> 
> And so does:
> SELECT 1.23e+01::Integer
> 
> 
>> > which I find just as dangerous as
>> > SELECT '1.234e+01'::Integer;
> 
> Add quotes to either of the other two, and then they don't work either.

Well, that's stupidly arbitrary.  If we're not going to accept
'1.234e+01'::Integer, then we shouldn't accept 1.234e+01::Integer either.

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: ps_status on fastpath
Next
From: Tomas Vondra
Date:
Subject: Re: proposal : cross-column stats