Преглед изворни кода

Do not call tds.Reset () as it is already done in the connection pool.

svn path=/trunk/mcs/; revision=105719
Veerapuram Varadhan пре 17 година
родитељ
комит
9191732ff0

+ 6 - 0
mcs/class/System.Data/System.Data.SqlClient/ChangeLog

@@ -1,3 +1,9 @@
+2008-06-12  Veerapuram Varadhan  <[email protected]>
+	
+	Patch by Christian Hergert <[email protected]>
+	* SqlConnection.cs (Open): Do not reset the connection as it is already 
+	done in the TdsConnectionPool itself.
+	
 2008-06-12  Marek Habersack  <[email protected]>
 
 	* SqlParameterCollection.cs: this [int] must check the range and

+ 0 - 2
mcs/class/System.Data/System.Data.SqlClient/SqlConnection.cs

@@ -575,8 +575,6 @@ namespace System.Data.SqlClient
 						pool.ReleaseConnection (tds);
 					throw;
 				}
-			} else if (connectionReset) {
-				tds.Reset ();
 			}
 
 			disposed = false; // reset this, so using () would call Close ().