List:Commits« Previous MessageNext Message »
From:rburnett Date:April 2 2009 3:50pm
Subject:Connector/NET commit: r1549 - in branches/5.2: . MySql.Data/Provider/Source
View as plain text  
Modified:
   branches/5.2/CHANGES
   branches/5.2/MySql.Data/Provider/Source/NativeDriver.cs
Log:
- removed a couple of unnecessary lines from NativeDriver.Open() (bug #44028)      


Modified: branches/5.2/CHANGES
===================================================================
--- branches/5.2/CHANGES	2009-04-02 15:49:45 UTC (rev 1548)
+++ branches/5.2/CHANGES	2009-04-02 15:50:05 UTC (rev 1549)
@@ -29,6 +29,7 @@
   NumberOfRestrictions column was missing the trailing s. (bug #43990)      
 - fixed index and index column schema collections that would fail if you specified the
   any restrictions more specific than table name (bug #43991)      
+- removed a couple of unnecessary lines from NativeDriver.Open() (bug #44028)      
       
 Version 5.2.5 - 11/14/2008
 - fixed problem with package registration that kept the DDEX provider from working (bug #40726)

Modified: branches/5.2/MySql.Data/Provider/Source/NativeDriver.cs
===================================================================
--- branches/5.2/MySql.Data/Provider/Source/NativeDriver.cs	2009-04-02 15:49:45 UTC (rev 1548)
+++ branches/5.2/MySql.Data/Provider/Source/NativeDriver.cs	2009-04-02 15:50:05 UTC (rev 1549)
@@ -195,8 +195,6 @@
 #if !CF
                 }
 #endif
-                if (baseStream == null)
-                    throw new Exception();
             }
             catch (Exception ex)
             {
@@ -205,7 +203,8 @@
             }
 
             if (baseStream == null)
-                throw new MySqlException("Unable to connect to any of the specified MySQL hosts");
+                throw new MySqlException(Resources.UnableToConnectToHost,
+                    (int)MySqlErrorCode.UnableToConnectToHost, ex);
 
             int maxSinglePacket = 255*255*255;
             stream = new MySqlStream(baseStream, encoding, false);

Thread
Connector/NET commit: r1549 - in branches/5.2: . MySql.Data/Provider/Sourcerburnett2 Apr