List:Commits« Previous MessageNext Message »
From:Reggie Burnett Date:November 22 2010 5:21pm
Subject:bzr commit into connector-net-6.1 branch (reggie.burnett:861)
View as plain text  
#At file:///C:/work/connector-net/6.1/ based on revid:reggie.burnett@stripped

  861 Reggie Burnett	2010-11-22 [merge]
      merged

    modified:
      CHANGES
      MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs
=== modified file 'CHANGES'
=== modified file 'CHANGES'
--- a/CHANGES	2010-11-17 22:55:49 +0000
+++ b/CHANGES	2010-11-22 17:21:55 +0000
@@ -8,6 +8,8 @@
 - fixed loading of mono.posix assembly to use the right assembly (bug #56410)
 - adding mapping for UTF8MB4 charset introduced with 5.5.3 (bug #58244)
 - return default values for text columns as quoted (bug #58167)
+- fixed our DDEX code so that dragging tables from server explorer onto a typed data set
+  preserves the table name (bug #57894)
 
 Version 6.1.5
 - Fix authorization popup after modifying stored procedure in VS (Bug #44715)

=== modified file 'MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs'
--- a/MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs	2010-07-02 18:36:52 +0000
+++ b/MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs	2010-11-22 17:21:10 +0000
@@ -24,25 +24,18 @@
             if (typeName == "Table")
             {
                 DbConnection c = connection.ConnectionSupport.ProviderObject as DbConnection;
+                string dbName = FormatPart("Table", c.Database, true);
 
                 if (identifierParts.Length == 1) 
                     id = identifierParts[0];
-                if (identifierParts.Length == 2 && identifierParts[0] == c.Database)
+                if (identifierParts.Length == 2 && identifierParts[0] == dbName)
                     id = identifierParts[1];
-                if (identifierParts.Length == 3 && identifierParts[1] == c.Database)
+                if (identifierParts.Length == 3 && identifierParts[1] == dbName)
                     id = identifierParts[2];
             }
             if (id == String.Empty || forDisplay)
                 id = base.BuildString(typeName, identifierParts, forDisplay);
             return id;
         }
-
-        protected override string FormatPart(string typeName, object identifierPart, bool withQuotes)
-        {
-            DbConnection c = connection.ConnectionSupport.ProviderObject as DbConnection;
-            if (typeName == "Table" && identifierPart.Equals(c.Database))
-                return null;
-            return base.FormatPart(typeName, identifierPart, withQuotes);
-        }
     }
 }


Attachment: [text/bzr-bundle] bzr/reggie.burnett@oracle.com-20101122172155-ti1ovslcjdg7ftvs.bundle
Thread
bzr commit into connector-net-6.1 branch (reggie.burnett:861) Reggie Burnett22 Nov