From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Teodor Sigaev <teodor(at)stack(dot)net> |
Cc: | Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Current CVS has strange parser for float type |
Date: | 2002-10-17 19:22:11 |
Message-ID: | 200210171922.g9HJMB228147@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)stack(dot)net
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2002-10-17 19:52:09 | Cleanup of /contrib |
Previous Message | Peter Eisentraut | 2002-10-17 19:18:05 | Re: PL/Perl and Perl 5.8 |