Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Interceptor
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv10378/Transaction/Interceptor
Modified Files:
TransactionAttribute.cs TransactionAttributeEditor.cs
Log Message:
SPRNET-802 - Default IsolationLevel should be ReadCommitted.
Index: TransactionAttributeEditor.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Interceptor/TransactionAttributeEditor.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TransactionAttributeEditor.cs 18 May 2006 21:37:51 -0000 1.6
--- TransactionAttributeEditor.cs 7 Dec 2007 07:30:48 -0000 1.7
***************
*** 138,142 ****
{
case "ISOLATION_DEFAULT":
! return IsolationLevel.Unspecified;
case "ISOLATION_READUNCOMMITTED":
return IsolationLevel.ReadUncommitted;
--- 138,142 ----
{
case "ISOLATION_DEFAULT":
! return IsolationLevel.ReadCommitted;
case "ISOLATION_READUNCOMMITTED":
return IsolationLevel.ReadUncommitted;
***************
*** 148,152 ****
return IsolationLevel.Serializable;
default:
! return IsolationLevel.Unspecified;
}
}
--- 148,152 ----
return IsolationLevel.Serializable;
default:
! return IsolationLevel.ReadCommitted;
}
}
Index: TransactionAttribute.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Data/Transaction/Interceptor/TransactionAttribute.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TransactionAttribute.cs 21 Oct 2007 18:16:38 -0000 1.7
--- TransactionAttribute.cs 7 Dec 2007 07:30:48 -0000 1.8
***************
*** 41,45 ****
/// like DefaultTransactionAttribute, (rolling back on all exceptions).
/// <para>
! /// The default property values are TransactionPropagation.Required, IsolationLevel.Unspecified,
/// DefaultTransactionDefinition.TIMEOUT_DEFAULT (can be changed, by default is the default
/// value of the underlying transaction subsystem)
--- 41,45 ----
/// like DefaultTransactionAttribute, (rolling back on all exceptions).
/// <para>
! /// The default property values are TransactionPropagation.Required, IsolationLevel.ReadCommitted,
/// DefaultTransactionDefinition.TIMEOUT_DEFAULT (can be changed, by default is the default
/// value of the underlying transaction subsystem)
***************
*** 57,61 ****
#region Fields
private TransactionPropagation _transactionPropagation = TransactionPropagation.Required;
! private IsolationLevel _isolationLevel = IsolationLevel.Unspecified;
private int _timeout = DefaultTransactionDefinition.TIMEOUT_DEFAULT;
private bool _readOnly = false;
--- 57,61 ----
#region Fields
private TransactionPropagation _transactionPropagation = TransactionPropagation.Required;
! private IsolationLevel _isolationLevel = IsolationLevel.ReadCommitted;
private int _timeout = DefaultTransactionDefinition.TIMEOUT_DEFAULT;
private bool _readOnly = false;
|