MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Reggie Burnett Date:April 16 2010 12:40am
Subject:bzr commit into connector-net-6.0 branch (reggie.burnett:802) Bug#52769
View as plain text  
#At file:///C:/work/bzr-connector-net/6.0/ based on revid:reggie.burnett@stripped

  802 Reggie Burnett	2010-04-15
      - Added trace message in exception blog in MySqlConnection.Abort() method (bug #52769)

    modified:
      CHANGES
      MySql.Data/Provider/Source/Connection.cs
=== modified file 'CHANGES'
=== modified file 'CHANGES'
--- a/CHANGES	2010-03-11 20:56:27 +0000
+++ b/CHANGES	2010-04-16 00:40:55 +0000
@@ -29,6 +29,7 @@
 - added two requested features -- MySqlDataReader.GetFieldType(string columnname) &
   MySqlDataReader.GetOrdinal() includes the name of the column in the exception when not found
   (bug #47467)
+- Added trace message in exception blog in MySqlConnection.Abort() method (bug #52769)
 
 Version 6.0.5
 - ensure that MySqlPacket always has a valid encoding. This prevents null reference exceptions in ReadString()

=== modified file 'MySql.Data/Provider/Source/Connection.cs'
--- a/MySql.Data/Provider/Source/Connection.cs	2009-11-03 17:56:23 +0000
+++ b/MySql.Data/Provider/Source/Connection.cs	2010-04-16 00:40:55 +0000
@@ -570,8 +570,11 @@
                 else
                     driver.Close();
             }
-            catch (Exception)
+            catch (Exception ex)
             {
+                if (Settings.Logging)
+                    Trace.TraceWarning(
+                        String.Concat("Error occurred aborting the connection. Exception was: ", ex.Message));
             }
             SetState(ConnectionState.Closed, true);
         }


Attachment: [text/bzr-bundle] bzr/reggie.burnett@sun.com-20100416004055-gx02hugpqmmaf65o.bundle
Thread
bzr commit into connector-net-6.0 branch (reggie.burnett:802) Bug#52769Reggie Burnett16 Apr