Re: Problems with NEW.* in triggers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jamie Lawrence <postgres(at)jal(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Problems with NEW.* in triggers
Date: 2003-11-05 00:10:46
Message-ID: 27275.1067991046@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jamie Lawrence <postgres(at)jal(dot)org> writes:
> I don't understand why moddate isn't getting set to now() in the above.

Josh fingered the problem there --- you need a BEFORE trigger if you
want to affect the data that will be stored. I had missed that little
mistake :-(

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jamie Lawrence 2003-11-05 00:16:53 Re: Problems with NEW.* in triggers
Previous Message Jamie Lawrence 2003-11-04 23:14:02 Re: Problems with NEW.* in triggers