Re: [GENERAL] pass NEW / OLD variable in trigger to table

2012-06-09 Thread Adrian Klaver
On 06/09/2012 05:49 AM, Philipp Kraus wrote: Hello, I'm using some trigger functions on a view. Can I pass the NEW / OLD variable to the table of the view? An excerpt of my view shows: IF TG_OP = 'INSERT' then insert into mytable (name, data, commentdata, history) values (NEW.name,

[GENERAL] pass NEW / OLD variable in trigger to table

2012-06-09 Thread Philipp Kraus
Hello, I'm using some trigger functions on a view. Can I pass the NEW / OLD variable to the table of the view? An excerpt of my view shows: IF TG_OP = 'INSERT' then insert into mytable (name, data, commentdata, history) values (NEW.name, NEW.data, NEW.commentdata, NEW.history); ernd if