Re: Current CVS has strange parser for float type - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Current CVS has strange parser for float type
Date
Msg-id 200210171922.g9HJMB228147@candle.pha.pa.us
Whole thread Raw
In response to Current CVS has strange parser for float type  (Teodor Sigaev <teodor@stack.net>)
List pgsql-hackers
Works here:test=> select 5.3::float; float8 --------    5.3(1 row)

---------------------------------------------------------------------------

Teodor Sigaev wrote:
> wow=# select 5.3::float;
> ERROR:  Bad float8 input format '5.3'
> wow=# select 5.3::float8;
> ERROR:  Bad float8 input format '5.3'
> wow=# select 5.3::float4;
> ERROR:  Bad float4 input format '5.3'
> wow=# select 5.3e-1::float4;
> ERROR:  Bad float4 input format '0.53'
> wow=# select -5.3e-1::float4;
> ERROR:  Bad float4 input format '0.53'
> wow=# select -5.3::float4;
> ERROR:  Bad float4 input format '5.3'
> wow=# select 5.32222e2::float4;
> ERROR:  Bad float4 input format '532.222'
> wow=# select version();
>                                 version
> ---------------------------------------------------------------------
>   PostgreSQL 7.3b2 on i386-unknown-freebsd4.6, compiled by GCC 2.95.3
> (1 row)
> 
> Very strange or I missed something?
> This 'feature' appears only on FreeBSD, Linux works fine.
> 
> 
> -- 
> Teodor Sigaev
> teodor@stack.net
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: orderRules() now a bad idea?
Next
From: Hannu Krosing
Date:
Subject: Re: Current CVS has strange parser for float type