Ticket #2284: post.sql

File post.sql, 318 bytes (added by scottanderson@…, 18 years ago)

Test file for problem

Line 
1CREATE FUNCTION f_post_insert() RETURNS trigger AS '
2DECLARE
3 v_level integer;
4 v_rightid integer;
5 nowtime timestamp(3);
6 vrec RECORD;
7BEGIN
8 nowtime := CURRENT_TIMESTAMP;
9
10 RETURN NEW;
11END;
12' LANGUAGE plpgsql
13;
14
15CREATE TRIGGER post_insert BEFORE INSERT ON forum_post FOR EACH ROW
16EXECUTE PROCEDURE f_post_insert() ;
Back to Top