Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to COMMIT in POST-QUERY trigger

Status
Not open for further replies.

LimonaM

Programmer
Oct 27, 2004
50
SI
Hello.

How can i COMMIT in POST-QUERY trigger, any ideas?

L
 
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;
 
I need commit, because my post_query trigger changes entry STATUS from 1 to 2. Then i need commit;
 
I need commit, because my post_query trigger changes entry STATUS from 1 to 2. Then i need commit.
 
I suggest you put the commit (as above) in the POST-SELECT in that case.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top