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

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

    modified:
      MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs
=== modified file 'MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs'
=== modified file 'MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs'
--- a/MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs	2010-08-30 21:23:16 +0000
+++ b/MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs	2010-11-22 17:24:27 +0000
@@ -46,25 +46,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-20101122172514-ffftp5yb0r11tk7e.bundle
Thread
bzr commit into connector-net-trunk branch (reggie.burnett:944) Reggie Burnett22 Nov