Releases: mysql-net/MySqlConnector
Releases · mysql-net/MySqlConnector
2.3.2
- Add
Foreign Keys,Indexes,Index Columnsschemas: #1419. - Fix exception when server doesn't send expected metadata: #1398.
- Clear activity tags when retrying TLS: #1405.
- Use underlying enum type when writing binary parameters: #1421.
- Avoid retrying TLS negotiation when a non-recoverable exception occurs.
- Thanks to @daebo01, @eaexo, and @trejjam for contributions to this release.
2.3.1
MySqlConnector
- Add
db.client.connections.timeoutscounter to metrics: #1392. - Allow empty
schemaRestrictionsarray to be passed toGetSchema: #1394. - Use higher-resolution timestamps for duration metrics: #1395.
- Possibly Breaking Use seconds as the units for duration metrics; change type to
double: #1396. - Thanks to @Thorium for contributions to this release.
MySqlConnector.DependencyInjection
- Add
AddKeyedMySqlDataSourceto support keyed services: #1391. - Update
Microsoft.Extensions.DependencyInjection.Abstractionsdependency to 8.0.0.
2.3.0
- Support .NET 8.0.
- Mark some serialization APIs as
[Obsolete]. - Implement
DbBatchCommand.CreateParameter: #1352. - Optimizations: Use
IUtf8SpanFormattable,Ascii.FromUtf16,Guid(bigEndian: true)constructor, argument-throwing helpers, etc.
- Mark some serialization APIs as
- Support .NET Framework 4.8 (
net48) TFM: #1355.- This allows
TlsVersion = TLSv1.3to be used on .NET Framework 4.8.
- This allows
- Drop support for .NET 4.6.1 and .NET Core 3.1: #636, #1273.
- .NET 4.6.1 support ended on 26 April 2022, and .NET Core 3.1 on 13 December 2022.
- The minimum supported versions are now .NET Framework 4.6.2 and .NET 6.0, although other frameworks should be supported via
netstandard2.0.
MySqlDataSourceis now available for all TFMs, not just .NET 7.0: #1269.- This provides a single place to configure a MySQL connection and makes it easier to register
MySqlConnectionwith dependency injection. - Add
MySqlDataSourceBuilderclass to configureMySqlDataSourceinstances. - Add
MySqlDataSource.NameandMySqlDataSourceBuilder.UseName.
- This provides a single place to configure a MySQL connection and makes it easier to register
- Microsoft.Extensions.Logging is now used as the core logging abstraction: #1110.
MySqlConnectorLogManager.Providercan still be used to add a logging destination, but it is now deprecated.- Use
MySqlDataSourceBuilder.UseLoggerFactoryto configure logging.
- Add new MySqlConnector.DependencyInjection package: #1271.
MySqlDataSourceandMySqlConnectioncan be registered with dependency injection by usingbuilder.Services.AddMySqlDataSource(connectionString).- This also configures logging automatically.
- Expose connection pool metrics: #491.
- Remove
COM_MULTIprotocol support: #946. - Support
ZEROFILLcolumns inMySqlDecimal: #1354. - Support higher-precision
DateTimevalues: #1379. - Use
ValueTaskinMySqlBulkCopyAPI for all TFMs: #1364.- Breaking This changes the return type of
WriteToServerAsyncfromTask<MySqlBulkCopyResult>toValueTask<MySqlBulkCopyResult>on .NET Framework
- Breaking This changes the return type of
- Support skipping metadata for prepared statements with MariaDB 10.6 and later: #1301.
- Support multiple authentication methods when connecting: #1303.
- Support per-query variables for
CommandBehavior.SchemaOnlyandSingleRow: #1312. - Recycle
MySqlDataReaderobjects: #1277. - Perform XA rollback when preparing a transaction fails: #1348.
- Implement faster parsing for result sets with multiple rows: #1330.
- Optimize parameter encoding for ASCII strings: #1296.
- Use
TcpClient.ConnectAsyncoverload withCancellationTokenon .NET 5.0 and later: #1291. - Fix cancellation when using a redirected connection: #1305.
- Fix
MySqlConnection.CloneWithfor connections created from aMySqlDataSource: #1306. - Work around ephemeral PEM bug on Windows: #1278.
- Reduce allocations on common code paths.
- Fix bug when column name begins with
@inMySqlBulkCopy: #1365. - Ignore
MySqlDbTypewhen serializing enum values: #1384. - Fix bug that didn't copy
MySqlDataSourceinMySqlConnection.Clone: #1267. - Fix version parsing for MariaDB 11.0 and later: #1311.
- Fix potential error in reallocating an internal buffer when writing ASCII text.
- Update handling of
ActivityStatusto latest conventions: #1334. - Reduce overhead of
CommandTimeout: #1338. - Reword end-of-stream message to be more generic: #1383.
- Thanks to @gboucher90, @JackBOBO, @Kielek, @rusher, and @stilettk for contributions to this release.
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
- Avoid renormalizing parameter names when executing a prepared command: #1252.
- Fix "Unknown column SRS_ID" error in
GetSchema: #1258. - Use a standardized value for the
TableNameproperty of theDataTablereturned fromGetSchema. - Minor performance improvements.
- Remove
FormatInvariantinternal helper method: #1253. - Eliminate temporary byte array when getting real server version.
- Remove
- Thanks to @neuecc for contributions to this release.