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

From Josh Berkus
Subject Why don't we accept exponential format for integers?
Date
Msg-id 4D0BB490.3030000@agliodbs.com
Whole thread Raw
Responses Re: Why don't we accept exponential format for integers?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Folks,

Is there any good reason that this works:

postgres=# select ('1e+01'::numeric)::integer
postgres-# ;int4
------  10

But this doesn't?

postgres=# select '1e+01'::Integer
postgres-# ;
ERROR:  invalid input syntax for integer: "1e+01"
LINE 1: select '1e+01'::Integer

... or did we just never implement it?

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


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)
Next
From: Pavel Stehule
Date:
Subject: Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)