Trigger problem - Mailing list pgsql-sql

From kasper
Subject Trigger problem
Date
Msg-id BJnxc.1978$_s7.121@news.get2net.dk
Whole thread Raw
Responses Re: Trigger problem
List pgsql-sql
Hi guys

Im tryint to make a trigger that marks a tuble as changed whenever someone
has updated it

my table looks something like this

create table myTable (   ...   changed boolean;
)

now ive been working on a trigger and a sp that looks like this, but it
doesnt work...

create function myFunction returns trigger as '   begin       new.changed = true;       return new;   end;
' language 'plpgsql';

create trigger myTrigger
after update on lektioner
for each row
execute procedure myFunction();


the code compiles, runs, and doesnt whine about anything, but nothing
changes...

any ideas??

- Kasper




pgsql-sql by date:

Previous
From: Jodi Kanter
Date:
Subject: search and replace
Next
From: Mike Rylander
Date:
Subject: Re: Trigger problem