Current CVS has strange parser for float type

From: Teodor Sigaev <teodor(at)stack(dot)net>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Current CVS has strange parser for float type
Date: 2002-10-17 18:34:50
Message-ID: 3DAF02CA.5020304@stack.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-10-17 18:54:30 Re: orderRules() now a bad idea?
Previous Message Hannu Krosing 2002-10-17 17:47:01 Re: Current CVS has strange parser for float type