Re: Another plpgsql question..

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mitch Vincent" <mitch(at)venux(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Another plpgsql question..
Date: 2001-01-23 17:10:46
Message-ID: 6739.980269846@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Mitch Vincent" <mitch(at)venux(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Steve Wolfe 2001-01-23 17:11:17 Re: "recovery mode"
Previous Message Thomas.Favier 2001-01-23 17:01:55 VACUUM and 24/7 database operation