Re: Overwriting Operator for numeric and float8 fails

From: Andrew McMillan <andrew(at)catalyst(dot)net(dot)nz>
To: Johann Zuschlag <zuschlag(at)online(dot)de>
Cc: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Overwriting Operator for numeric and float8 fails
Date: 2001-08-14 04:24:43
Message-ID: 3B78A80B.BEFD51BD@catalyst.net.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Gaetan GUYODO 2001-08-14 07:14:34 Re: standard sql operators
Previous Message Johann Zuschlag 2001-08-13 22:41:46 Overwriting Operator for numeric and float8 fails