MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:rburnett Date:December 3 2008 7:41pm
Subject:Connector/NET commit: r1470 - trunk/MySql.Data/Provider/Source
View as plain text  
Modified:
   trunk/MySql.Data/Provider/Source/ISSchemaProvider.cs
Log:
fixed small problem where some code assumed that CHARACTER_SET_NAME for a parameter would be set

Modified: trunk/MySql.Data/Provider/Source/ISSchemaProvider.cs
===================================================================
--- trunk/MySql.Data/Provider/Source/ISSchemaProvider.cs	2008-12-03 19:31:54 UTC (rev 1469)
+++ trunk/MySql.Data/Provider/Source/ISSchemaProvider.cs	2008-12-03 19:41:28 UTC (rev 1470)
@@ -544,7 +544,8 @@
                 row["DTD_IDENTIFIER"] = dtd.ToString();
 
             // now default the collation if one wasn't given
-            if (row["COLLATION_NAME"].ToString().Length == 0)
+            if (row["COLLATION_NAME"].ToString().Length == 0 &&
+                row["CHARACTER_SET_NAME"].ToString().Length > 0)
                 row["COLLATION_NAME"] = CharSetMap.GetDefaultCollation(
                     row["CHARACTER_SET_NAME"].ToString(), connection);
 

Thread
Connector/NET commit: r1470 - trunk/MySql.Data/Provider/Sourcerburnett3 Dec