[Mono-bugs] [Bug 75904][Maj] New - Can't begin new transaction if previous was rolled back

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Aug 25 07:39:11 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by krylovbv at mail.ru.

http://bugzilla.ximian.com/show_bug.cgi?id=75904

--- shadow/75904	2005-08-25 07:39:11.000000000 -0400
+++ shadow/75904.tmp.32612	2005-08-25 07:39:11.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 75904
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: Sys.Data.SqlClient
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: krylovbv at mail.ru               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Can't  begin new transaction if previous was rolled back
+
+Description of Problem:
+
+Can't open new transaction jn same connection if previous was rollback
+
+
+Steps to reproduce the problem:
+1. Complie foolling code
+
+SqlConnection con = new SqlConnection("server=localhost;user id=sa;password=");
+con.Open();
+using(SqlTransaction tran = con.BeginTransaction()) {
+	tran.Rollback();
+}
+con.BeginTransaction();
+
+Actual Results:
+
+Throws Exception
+
+Unhandled Exception: System.InvalidOperationException: SqlConnection does
+not support parallel transactions.
+in [0x000d2] System.Data.SqlClient.SqlConnection:BeginTransaction
+(IsolationLevel iso, System.String transactionName)
+in (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlConnection:BeginTransaction
+(System.Data.IsolationLevel,string)
+in [0x0000b] (at
+C:\cygwin\mono_build\src\mono-1.1.8.3\mcs\class\System.Data\System.Data.SqlClient\SqlConnection.cs:294)
+System.Data.Sql
+Client.SqlConnection:BeginTransaction ()
+in (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlConnection:BeginTransaction ()
+in <0x000a6> TestMono.Class1:Main (System.String[] args)
+
+Expected Results:
+
+No exception expected


More information about the mono-bugs mailing list