Skip to content

Releases: mysql-net/MySqlConnector

0.38.0

28 Mar 15:06
Compare
Choose a tag to compare

Download on NuGet

  • Add Serilog logging provider: #463.
  • Add NLog logging provider: #470
  • Implement IDbDataParameter on MySqlParameter: #465.
  • Implement MySqlDataReader.GetChar: #456.
  • Add MySqlDataReader.GetFieldType(string) overload: #440.
  • Fix a connection pooling session leak in high contention scenarios: #469.
  • Fix overhead of extra connection pools created in a race: #468.
  • Thanks to @marcrocny and @snakefoot for contributions to this release.

0.37.1

21 Mar 17:11
Compare
Choose a tag to compare

Download on NuGet

  • Serialize enum parameter values as strings when MySqlParameter.MySqlDbType is set to MySqlDbType.String or VarChar: #459.
  • Require ConnectionIdlePingTime (added in 0.37.0) to be explicitly set to a non-zero value to avoid pinging the server.
  • Thanks to @Naragato for contributions to this release.

0.37.0

20 Mar 06:52
Compare
Choose a tag to compare

Download on NuGet

  • Support TLS 1.2 on Windows clients: #458.
    • Use the best TLS version supported by the OS, as per best practices.
  • Add ConnectionIdlePingTime connection string setting (Experimental): #461.
  • Fix failure to log in for accounts with empty passwords that use caching_sha2_password.
  • Throw MySqlException for invalid port number in connection string.

0.36.1

07 Mar 04:09
Compare
Choose a tag to compare

Download on NuGet

  • Reap connections more frequently if ConnectionIdleTimeout is low: #442.
  • Fix ArgumentOutOfRangeException when command times out: #447.
  • Speed up connection pooling (particularly in applications that only have one connection string).
  • Reduce heap allocations in common scenarios.

0.36.0

16 Feb 17:03
Compare
Choose a tag to compare

Download on NuGet

  • Breaking Require CertificateFile to include private key (for mutual authentication): #436.
  • Add MySqlDataReader.GetX(string) overloads: #435.
  • Add MySqlDataReader.GetTimeSpan: #438.
  • Add MySqlDataReader.GetUInt16, GetUInt32, GetUInt64: #439.
  • Set MySqlConnection.State to ConnectionState.Closed when the connection fails: #433.
  • Fix error parsing -- comments in SQL: #429.
  • Fix error parsing C-style comments in SQL.
  • Breaking Wrap unhandled SocketException in MySqlException: #434.

0.35.0

21 Jan 05:44
Compare
Choose a tag to compare

Download on NuGet

  • Add MySqlCommandBuilder.DeriveParameters: #419.
  • Add MySqlConnection.Ping and MySqlConnection.PingAsync: #260.

0.34.2

10 Jan 23:22
Compare
Choose a tag to compare

Download on NuGet

  • Fix exception when a stored procedure returns NULL for an OUT parameter: #425.

0.34.1

09 Jan 23:29
Compare
Choose a tag to compare

Download on NuGet

  • Add overloads of MySqlParameterCollection.Add: #424.
  • Fix conversion of MySqlCommand.LastInsertedId: #422.
  • Fix "Expected state to be Failed but was Connected" InvalidOperationException: #423.
  • Improve performance when calling stored procedures with no parameters (this was regressed in 0.34.0).
  • Reduce severity of some logging statements.

0.34.0

02 Jan 19:00
Compare
Choose a tag to compare
  • Implement MySqlCommandBuilder: #303
  • Add Microsoft.Extensions.Logging provider: #418
  • Add new MySqlTransaction.Connection property that returns an object typed as MySqlConnection
  • Support CLIENT_SESSION_TRACK protocol option: #323
  • Optimization: move procedure cache to connection pool: #415
  • Ignore extra data at end of column definition payload: #413
  • Handle failure to find procedure: #282
  • Breaking Clear MySqlTransaction.Connection when transaction is committed: #61
    • This is a breaking API change from Connector/NET, but matches other ADO.NET connectors

0.33.2

20 Dec 20:41
Compare
Choose a tag to compare
  • Breaking Throw InvalidCastException instead of MySqlException from MySqlDataReader.GetGuid.
    • This is a breaking API change from Connector/NET, but matches other ADO.NET connectors.
  • Fix default values of MySqlParameter.ParameterName and .SourceColumn; they now follow MSDN documentation.
  • Fix ObjectDisposedException when a connection is returned to the pool: #411.
  • Fix NotSupportedException when MySqlParameter.Value is set to a char: #412.