Skip to content

Releases: mysql-net/MySqlConnector

0.52.0

11 Apr 17:49

Choose a tag to compare

Download on NuGet

  • Potentially breaking Change default connection collation from utf8mb4_general_ci to the server's default for utf8mb4: #626.
    • This updates a change made in 0.48.0.
  • Fix "Command timeout" exception being thrown when there wasn't a command timeout: #628.

0.51.1

27 Mar 14:33

Choose a tag to compare

Download on NuGet

  • Add support for Memory<byte> and ArraySegment<byte> as MySqlParameter.Value values.
  • Fix exception when setting MySqlParameter.Value to ReadOnlyMemory<byte> when using prepared commands.

0.51.0

27 Mar 03:33

Choose a tag to compare

Download on NuGet

  • Set MySqlException.Number to MySqlErrorCode.UnableToConnectToHost in more situations when connecting times out: #622.
  • Improve handling of MySqlConnection.Close() within TransactionScope: #620.
  • Allow MySqlParameter.Value to be a ReadOnlyMemory<byte>: #624.
  • Thanks to @mguinness for contributions to this release.

0.50.0

18 Mar 04:01

Choose a tag to compare

Download on NuGet

  • Add MySqlClientFactory.Register() for integration with DbProviderFactories in netcoreapp2.1: #526.
  • Use more efficient "Reset Connection" for MariaDB 10.2.4 and later: #613.
  • Ignore MySqlConnection.EnlistTransaction called more than once for the same transaction: #619.
  • MySqlConnection.ConnectionString will always be coerced from null to the empty string.
  • Use ReadOnlySpan<byte> in more places when parsing server responses.
  • Fix multiple NullReferenceException errors that could occur in edge cases.

0.49.3

24 Jan 06:30

Choose a tag to compare

Download on NuGet

  • Use correct isolation level when starting a transaction for System.Transactions.TransactionScope: #605.

0.49.2

16 Jan 14:57

Choose a tag to compare

Download on NuGet

  • Fix bug in parsing OK packet when CLIENT_SESSION_TRACK isn't supported: #603.

0.49.1

15 Jan 20:38

Choose a tag to compare

Release 0.49.1.

0.49.0

12 Jan 00:44

Choose a tag to compare

Download on NuGet

  • Breaking The default value for the UseAffectedRows connection string option has changed from true to false. This provides better compatibility with Connector/NET's defaults and also with other ADO.NET libraries: #600.
    • If you are upgrading from an earlier version of MySqlConnector, either audit your uses of the return value of ExecuteNonQuery (it will now return the number of rows matched by the WHERE clause for UPDATE statements, instead of the number of rows whose values are actually changed), or add UseAffectedRows=true to your connection string.
    • If you are migrating (or have recently migrated) from Connector/NET to MySqlConnector, then no changes need to be made: MySqlConnector now exhibits the same default behaviour as Connector/NET.
  • Make MySqlException serializable: #601.
  • Set MySqlException.Number to MySqlErrorCode.UnableToConnectToHost when connecting fails: #599.
  • Populate MySqlException.Data dictionary: #602.

0.48.2

12 Dec 16:35

Choose a tag to compare

Download on NuGet

  • Fix InvalidCastException in MySqlDataReader.GetDateTime when AllowZeroDateTime=True: #597.

0.48.1

10 Dec 19:17

Choose a tag to compare

Download on NuGet

  • Add net471 as target platform: #595.
  • Support IDbColumnSchemaGenerator interface in netcoreapp2.1 package.
  • Fix error in binding parameter values for prepared statements.
  • Fix exception when using more than 32,767 parameters in a prepared statement.