Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSenganal T <senga@mono-cvs.ximian.com>2005-09-21 14:39:52 +0400
committerSenganal T <senga@mono-cvs.ximian.com>2005-09-21 14:39:52 +0400
commit57f5f5502c521a24dabb291c451d31b7c5292bd2 (patch)
tree289d03c2d691369084c63e09065a703fecf4bd5b /mcs/class/System.Data/System.Data.SqlClient
parent6d777d52a90b2b035503ff60afc1fbae29dbdf44 (diff)
* SqlTransaction.cs : Modifed the Rollback() method, so that
connection can be used for another transaction after the previous transaction is rolled back. fixes bug 75904 svn path=/trunk/mcs/; revision=50364
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient')
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/ChangeLog6
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs2
2 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
index 888bce79230..e6e4237266d 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
+++ b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
@@ -1,3 +1,9 @@
+2005-09-21 Senganal T <tsenganal@novell.com>
+
+ * SqlTransaction.cs : Modifed the Rollback() method, so that
+ connection can be used for another transaction after the previous
+ transaction is rolled back. fixes bug 75904
+
2005-09-02 Umadevi S <sumadevi@novell.com>
* Removed SqlResultSet.cs file
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs
index 80c41f39c59..b5c06e46db2 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs
+++ b/mcs/class/System.Data/System.Data.SqlClient/SqlTransaction.cs
@@ -144,6 +144,8 @@ namespace System.Data.SqlClient {
connection.Tds.Execute (String.Format ("ROLLBACK TRANSACTION {0}", transactionName));
isRolledBack = true;
isOpen = false;
+ connection.Transaction = null;
+ connection = null;
}
}