Re: Updating

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: Daniel Verite <daniel(at)manitou-mail(dot)org>, Adrian Klaver <aklaver(at)comcast(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: Updating
Date: 2008-03-18 00:33:30
Message-ID: 4145.1205800410@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bob Pawley <rjpawley(at)shaw(dot)ca> writes:
> If NEW.p_id.association.monitoring_fluid is distinct from
> Old.p_id.association.monitoring_fluid Then

Surely this should just be

if new.monitoring_fluid is distinct from old.monitoring_fluid then

Also, I think you forgot an "end if" and a "return new" at the end.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tyler, Mark 2008-03-18 01:31:07 Re: Problem with async notifications of table updates
Previous Message Blair Bethwaite 2008-03-18 00:13:00 Is autovacuum on?