help: triggers - Mailing list pgsql-sql

From Tony Simbine
Subject help: triggers
Date
Msg-id 3E37D737.90902@mvweb.de
Whole thread Raw
List pgsql-sql
hello,

I'm trying to update a columm on a table with a trigger
but it don't work on PostgreSQL 7.2 (i686-pc-linux-gnu, compiled by GCC 
2.96).

when I update a row the trigger does nothing.
what can I do?

thanks in advance

tony


here is my trigger:

########################################################
CREATE FUNCTION update_my_objekt() RETURNS OPAQUE AS '
BEGIN        RAISE NOTICE ''My Trigger is updating the table'';        IF OLD.status=''Activo'' THEN
NEW.tempo:= 10;                NEW.actual := now();        END IF;        RETURN NEW;
 
END;
' LANGUAGE 'plpgsql';


CREATE TRIGGER update_online BEFORE  UPDATE ON iobjects    FOR EACH ROW EXECUTE PROCEDURE update_my_objekt();

##########################################################



pgsql-sql by date:

Previous
From: "Moritz Lennert"
Date:
Subject: Re: plpgsql: return results of a dynamic query
Next
From: "Wei Weng"
Date:
Subject: Re: help: triggers