MySQL Connector/Net Release Notes  /  Changes in MySQL Connector/Net 6.0  /  Changes in MySQL Connector/Net 6.0.4 (2009-06-16)

Changes in MySQL Connector/Net 6.0.4 (2009-06-16)

This is the first post-GA release, fixing recently discovered bugs.

Bugs Fixed

  • If a certain socket exception occurred when trying to establish a MySQL database connection, MySQL Connector/Net displayed an exception message that appeared to be unrelated to the underlying problem. This masked the problem and made diagnosing problems more difficult.

    For example, if, when establishing a database connection using TCP/IP, Windows on the local machine allocated an ephemeral port that conflicted with a socket address still in use, then Windows/.NET would throw a socket exception with the following error text:

    Only one usage of each socket address (protocol/network address/port) is normally
    permitted IP ADDRESS/PORT.

    However, MySQL Connector/Net masked this socket exception and displayed an exception with the following text:

    Unable to connect to any of the specified MySQL hosts.

    (Bug #45021)

  • A SQL query string containing an escaped backslash caused an exception to be generated:

    Index and length must refer to a location within the string.
    Parameter name: length
    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean
    at MySql.Data.MySqlClient.MySqlTokenizer.NextParameter()
    at MySql.Data.MySqlClient.Statement.InternalBindParameters(String sql,
    MySqlParameterCollection parameters, MySqlPacket packet)
    at MySql.Data.MySqlClient.Statement.BindParameters()
    at MySql.Data.MySqlClient.PreparableStatement.Execute()
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior be‚Äéhavior)
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()

    (Bug #44960)

  • The Microsoft Visual Studio solution file MySQL-VS2005.sln was invalid. Several projects could not be loaded and thus it was not possible to build MySQL Connector/Net from source. (Bug #44822)

  • The Data Set editor generated an error when attempts were made to modify insert, update or delete commands:

    Error in WHERE clause near '@'.
    Unable to parse query text.

    (Bug #44512)

  • The DataReader in MySQL Connector/Net 6.0.3 considered a BINARY(16) field as a GUID with a length of 16. (Bug #44507)

  • When creating a new DataSet the following error was generated:

    Failed to open a connection to database.
    Cannot load type with name 'MySQL.Data.VisualStudio.StoredProcedureColumnEnumerator'

    (Bug #44460)

  • The MySQL Connector/Net MySQLRoleProvider reported that there were no roles, even when roles existed. (Bug #44414)

  • MySQL Connector/Net was missing the capability to validate the server's certificate when using encryption. This made it possible to conduct a man-in-the-middle attack against the connection, which defeated the security provided by SSL. (Bug #38700)

Download these Release Notes
PDF (US Ltr) - 0.6Mb
PDF (A4) - 0.6Mb
EPUB - 158.5Kb