As many of you have already discovered, Connector/Net 5.0.5 does not work correctly with Tools for Visual Studio. The symptom is that when the plugin tries to enumerate all the tables in the database, it reports that it gets back an improper data type. The cause of this problem is somewhat involved so I thought I would blog on it.
Since the early days of the connector, binary data was not always handled correctly. Specifically, columns that were reported to the connector as CHAR and VARCHAR were returned as System.String. This is, of course, not always correct. The case that prompted the changes was a bug report that SELECT _binary "foo" would return foo as a System.String instead of System.Byte[] as it should.
The fix is to always respect the binary markers that the server sends, which 5.0.5 does. The problem is that MySQL incorrectly reports some columns as binary such as the name column from …
[Read more]