BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TADOConnection BeforeCommit event? (Oracle).

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
dean
Guest





PostPosted: Thu Oct 26, 2006 8:31 pm    Post subject: TADOConnection BeforeCommit event? (Oracle). Reply with quote



Hello all,

I am trying to resolve a problem in an app that results in a
transaction session being committed, even though I have not explicitly
(knowingly) called CommitTrans(). I really want a BeforeCommit event so
that I can catch the call stack, but there is none, AFAIK.

Anyone know how to do this? I have searched for CommitTrans in the
code, and all of the calls are paired with a BeginTrans, which would
fail if the session is already in a transaction.

Thanks for any help,

DeanB
Back to top
Vitali Kalinin
Guest





PostPosted: Fri Oct 27, 2006 2:20 pm    Post subject: Re: TADOConnection BeforeCommit event? (Oracle). Reply with quote



How about TADOConnection.OnCommitTransComplete?
Back to top
dean
Guest





PostPosted: Sat Oct 28, 2006 1:24 am    Post subject: Re: TADOConnection BeforeCommit event? (Oracle). Reply with quote



Vitali Kalinin wrote:
Quote:
How about TADOConnection.OnCommitTransComplete?

That occurs after the commit, not before. I want to pop up a
confirmation message before the commit.
Back to top
dean
Guest





PostPosted: Sat Oct 28, 2006 2:40 am    Post subject: Re: TADOConnection BeforeCommit event? (Oracle). Reply with quote

Vitali Kalinin wrote:
Quote:
How about TADOConnection.OnCommitTransComplete?

That occurs after the commit, not before. I want to pop up a
confirmation message before the commit.
Back to top
Vitali Kalinin
Guest





PostPosted: Mon Oct 30, 2006 3:20 pm    Post subject: Re: TADOConnection BeforeCommit event? (Oracle). Reply with quote

I thought you were trying to detect when "unexpected commit" happens?
Back to top
dean
Guest





PostPosted: Wed Nov 01, 2006 9:11 am    Post subject: Re: TADOConnection BeforeCommit event? (Oracle). Reply with quote

Vitali Kalinin wrote:
Quote:
I thought you were trying to detect when "unexpected commit" happens?

Ok, well that's a good point too, I could put a break point on that
event and see what's going on. Cheers!

Dean.

(ps I'm coming to think now that I must have pressed the commit button
unknowingly once or twice)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.