Re: double precision vs. numeric

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Aarni Ruuhimäki <aarni(at)kymi(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: double precision vs. numeric
Date: 2006-08-28 13:08:27
Message-ID: 20060828130827.GB4094@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Aug 28, 2006 at 11:08:50AM +0300, Aarni Ruuhimki wrote:
> Now I saw it again. In a terminal window after an insert from an application:
>
> WARNING: deprecated input syntax for type double precision: ""
> DETAIL: This input will be rejected in a future release of PostgreSQL.
>
> So this merely means that in future one can not insert empty values into field
> of type double precision ?

Right. 8.0 issues a warning and 8.1 gives an error:

8.0.8
test=> SELECT ''::double precision;
WARNING: deprecated input syntax for type double precision: ""
DETAIL: This input will be rejected in a future release of PostgreSQL.
float8
--------
0
(1 row)

8.1.4
test=> SELECT ''::double precision;
ERROR: invalid input syntax for type double precision: ""

--
Michael Fuhr

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Aarni Ruuhimäki 2006-08-28 13:32:31 Re: double precision vs. numeric
Previous Message Andrew Sullivan 2006-08-28 10:46:03 Re: Create Assertion -- Question from a newbie