Skip to content

Releases: mysql-net/MySqlConnector

0.51.0

27 Mar 03:33
Compare
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
Compare
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
Compare
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
Compare
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
Compare
Choose a tag to compare
Release 0.49.1.

0.49.0

12 Jan 00:44
Compare
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
Compare
Choose a tag to compare

Download on NuGet

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

0.48.1

10 Dec 19:17
Compare
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.

0.48.0

08 Dec 17:09
Compare
Choose a tag to compare

Download on NuGet

  • Breaking Disallow duplicate parameter names after normalization: #591.
  • Potentially breaking Change default connection collation from utf8mb4_bin to utf8mb4_general_ci: #585.
  • Potentially breaking Update stored procedure metadata cache to use mysql.proc when available: #569.
    • This provides higher performance, but is a potentially-breaking change for any client using stored procedures.
  • Change System.Transactions support:
    • Add UseXaTransactions connection string option to opt out of XA transactions (equivalent to Connector/NET behaviour): #254.
    • Potentially breaking Opening multiple (distinct) MySqlConnection objects within the same transaction will reuse the same server session: #546.
  • Add MySqlConnection.InfoMessage event: #594.
  • Implement ICloneable on MySqlCommand: #583.
  • Fix logic for detecting variable names in SQL: #195, #589.
  • Fix NullReferenceException when attempting to invoke a non-existent stored procedure.
  • Support MySQL Server 5.1 (and earlier) by using utf8 if utf8mb4 isn't available.
  • Reduce log message severity for session discarded due to ConnectionLifeTime: #586.
  • Optimise MySqlDataReader.GetStream: #592.
  • Use latest dotnet SourceLink package.

0.47.1

04 Nov 17:39
Compare
Choose a tag to compare

Download on NuGet

  • Fix NullReferenceException in GetSchemaTable: #580.
  • Return correct schema table for second result set: #581.