From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de> |
Cc: | PG Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: NUMERIC and arithmetics |
Date: | 2002-09-19 12:57:28 |
Message-ID: | 20020919125728.GB26021@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Thu, Sep 19, 2002 at 02:27:21PM +0200, Christoph Dalitz wrote:
> Hello,
>
> in PG 7.1.x the NUMERIC data type makes some trouble with arithmetic and comparison
> operators:
>
> delete from produkt where preis > 3.00;
>
> yields
>
> ERROR: Unable to identify an operator '>' for types 'numeric' and 'float8'
>
> preis is typed NUMERIC(8,2). Strangely, "preis > 3" works.
>
> Is this fixed in version 7.2?
If you do:
delete from produkt where preis > '3.00';
it works fine. I'm thinking we could save ourselves a lot of hassle by
requiring all constants to be quoted :)
Not gonna happen. Oh well.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> There are 10 kinds of people in the world, those that can do binary
> arithmetic and those that can't.
From | Date | Subject | |
---|---|---|---|
Next Message | Chris Bowlby | 2002-09-19 13:12:47 | Re: array issue.... |
Previous Message | Andrew Sullivan | 2002-09-19 12:40:37 | Re: IN vs EXIIST |