Re: Problems with NEW.* in triggers

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

On Tue, 04 Nov 2003, Tom Lane wrote:

> 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 :-(

Yep. Many thanks to both of you.

-j

--
Jamie Lawrence jal(at)jal(dot)org
If built in great numbers, motels will be used for nothing but illegal
purposes.
- J. Edgar Hoover

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Glaesemann 2003-11-05 04:09:57 Re: query assistance
Previous Message Tom Lane 2003-11-05 00:10:46 Re: Problems with NEW.* in triggers