#At file:///C:/work/connector-net/6.0/ based on revid:reggie.burnett@stripped
848 Reggie Burnett 2010-11-22
- fixed our DDEX code so that dragging tables from server explorer onto a typed data set
preserves the table name (bug #57894)
modified:
CHANGES
MySql.VisualStudio/DDEX/MySqlDataObjectIdentifierConverter.cs
=== modified file 'CHANGES'
=== modified file 'CHANGES'
--- a/CHANGES 2010-11-17 22:54:56 +0000
+++ b/CHANGES 2010-11-22 17:21:10 +0000
@@ -7,6 +7,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.0.7
- 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-20101122172110-ctkkhqfu4hym68wg.bundle
| Thread |
|---|
| • bzr commit into connector-net-6.0 branch (reggie.burnett:848) Bug#57894 | Reggie Burnett | 22 Nov |