Re: Another plpgsql question.. - Mailing list pgsql-general

From Tom Lane
Subject Re: Another plpgsql question..
Date
Msg-id 6739.980269846@sss.pgh.pa.us
Whole thread Raw
In response to Re: Another plpgsql question..  ("Mitch Vincent" <mitch@venux.net>)
List pgsql-general
"Mitch Vincent" <mitch@venux.net> writes:
> ERROR:  Unable to identify an operator '=' for types 'numeric' and 'float8'
>         You will have to retype this query using an explicit cast

> --- amount and total are both numeric(9,2),

Hm, then "(total - NEW.amount) = 0.00::numeric" should work, although
I don't see why you don't just write it as "total = NEW.amount".

            regards, tom lane

pgsql-general by date:

Previous
From: Marcos
Date:
Subject: showing X fields from X total
Next
From: Bruce Momjian
Date:
Subject: Re: Outer Joins