Feb 7, 2002 #1 LimonaM Programmer Oct 27, 2004 50 SI Hello. How can i COMMIT in POST-QUERY trigger, any ideas? L
Feb 7, 2002 #2 lewisp Programmer Aug 5, 2001 1,238 GB Why would you want to commit in a post-query trigger? Anyway, POST-QUERY: DECLARE tm TIMER := Find_Timer('T_COMMIT'); BEGIN IF Id_Null(tm) THEN tm := Create_Timer('T_COMMIT',1,NO_REPEAT); END IF; END; WHEN-TIMER-EXPIRED: IF Get_Application_Property(TIMER_NAME) = 'T_COMMIT'; THEN Commit_Form; END IF; Upvote 0 Downvote
Why would you want to commit in a post-query trigger? Anyway, POST-QUERY: DECLARE tm TIMER := Find_Timer('T_COMMIT'); BEGIN IF Id_Null(tm) THEN tm := Create_Timer('T_COMMIT',1,NO_REPEAT); END IF; END; WHEN-TIMER-EXPIRED: IF Get_Application_Property(TIMER_NAME) = 'T_COMMIT'; THEN Commit_Form; END IF;
Feb 7, 2002 Thread starter #3 LimonaM Programmer Oct 27, 2004 50 SI I need commit, because my post_query trigger changes entry STATUS from 1 to 2. Then i need commit; Upvote 0 Downvote
Feb 7, 2002 Thread starter #4 LimonaM Programmer Oct 27, 2004 50 SI I need commit, because my post_query trigger changes entry STATUS from 1 to 2. Then i need commit. Upvote 0 Downvote
Feb 7, 2002 #5 lewisp Programmer Aug 5, 2001 1,238 GB I suggest you put the commit (as above) in the POST-SELECT in that case. Upvote 0 Downvote
Feb 12, 2002 Thread starter #6 LimonaM Programmer Oct 27, 2004 50 SI I just write that code and it should work? or do i have to change something, because i wrote it and it doesn't happend anything. Upvote 0 Downvote
I just write that code and it should work? or do i have to change something, because i wrote it and it doesn't happend anything.
Feb 13, 2002 #7 lewisp Programmer Aug 5, 2001 1,238 GB How are you changing the status? Upvote 0 Downvote