Re: Overwriting Operator for numeric and float8 fails - Mailing list pgsql-novice

From Andrew McMillan
Subject Re: Overwriting Operator for numeric and float8 fails
Date
Msg-id 3B78A80B.BEFD51BD@catalyst.net.nz
Whole thread Raw
In response to Overwriting Operator for numeric and float8 fails  ("Johann Zuschlag" <zuschlag@online.de>)
Responses Re: Overwriting Operator for numeric and float8 fails  ("Johann Zuschlag" <zuschlag@online.de>)
List pgsql-novice
Johann Zuschlag wrote:
>
> Hi,
>
> I've got a really stupid question. My application does queries like this:
>
> SELECT t6.* FROM RECHNUNG  t6 WHERE t6.bruttosumm = 00000034.70 ORDER BY t6.nummer DESC
>

Can't you just force conversion of the constant to numeric?

SELECT t6.* FROM RECHNUNG  t6 WHERE t6.bruttosumm = numeric(00000034.70)
ORDER BY t6.nummer DESC

Cheers,
                    Andrew.
--
_____________________________________________________________________
        Andrew McMillan, e-mail: Andrew @ catalyst . net . nz
Catalyst IT Ltd, PO Box 10-225, Level 22, 105 The Terrace, Wellington
Me: +64(27)246-7091, Fax:+64(4)499-5596, Office: +64(4)499-2267xtn709

pgsql-novice by date:

Previous
From: harrold@sage.che.pitt.edu
Date:
Subject: standard sql operators
Next
From: Gaetan GUYODO
Date:
Subject: Re: standard sql operators