ODACv6.5 OraSession how to use BeginTrans like adoconnection

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jansonwu
Posts: 8
Joined: Fri 21 Nov 2008 03:50

ODACv6.5 OraSession how to use BeginTrans like adoconnection

Post by jansonwu » Wed 24 Dec 2008 03:09

ODACv6.5 TOraSession how to use BeginTrans event like adoconnection?

TOraSession have not
"OraSession1.BeginTrans;OraSession1.CommitTrans;OraSession1.RollbackTrans; "?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 24 Dec 2008 08:27

TOraSession has the StartTransaction, Commit, and Rollback methods. But it has no corresponding events.

You can manually call your code that should be executed after a transaction is started. For example:

Code: Select all

OraSession.StartTransaction;
DoOnStartTransaction; // this is your procedure that is executed after a transaction is started

Post Reply