Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv31237
Modified Files:
AdoPlatformTransactionManager.cs
Log Message:
some code cleanup.
Index: AdoPlatformTransactionManager.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Data/Core/AdoPlatformTransactionManager.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AdoPlatformTransactionManager.cs 12 Nov 2007 19:57:58 -0000 1.6
--- AdoPlatformTransactionManager.cs 30 Nov 2007 18:42:11 -0000 1.7
***************
*** 152,157 ****
log.Debug("Acquired Connection [" + newCon + ", " + newCon.ConnectionString + "] for ADO.NET transaction");
}
!
! newCon.Open();
//TODO isolation level mgmt - will need to abstract out SQL used to specify this in DbMetaData
--- 152,156 ----
log.Debug("Acquired Connection [" + newCon + ", " + newCon.ConnectionString + "] for ADO.NET transaction");
}
! newCon.Open();
//TODO isolation level mgmt - will need to abstract out SQL used to specify this in DbMetaData
***************
*** 265,270 ****
(DbProviderTransactionObject)status.Transaction;
IDbTransaction trans = txMgrStateObject.ConnectionHolder.Transaction;
! //TODO add debug to status object
! //if (status.Debug)
try
{
--- 264,272 ----
(DbProviderTransactionObject)status.Transaction;
IDbTransaction trans = txMgrStateObject.ConnectionHolder.Transaction;
! if (status.Debug)
! {
! IDbConnection conn = txMgrStateObject.ConnectionHolder.Connection;
! log.Debug("Committing ADO.NET transaction on Connection [" + conn + ", " + conn.ConnectionString + "]");
! }
try
{
***************
*** 328,331 ****
--- 330,334 ----
}
+
protected override void DoCleanupAfterCompletion(object transaction)
{
|