Releases: mysql-net/MySqlConnector
Releases · mysql-net/MySqlConnector
0.60.0
- Possibly breaking Implement conversions in GetFieldValue: #716.
- Add C# 8 nullable annotations to public API.
- Support
TablesandViewsschemas inMySqlConnection.GetSchema: #719. - Add better exception message when
'0000-00-00'can't be converted: #690. - Implement
MySqlConnection.Clone: #720. - Update list of reserved words.
- Use new
Socketasync APIs (.NET Standard 2.1, .NET Core 3.0). - Update
System.Net.Securitydependency to v4.3.1 (.NET Standard 1.3). - Thanks to @Marusyk and @KaliVi for contributions to this release.
0.59.2
0.59.1
0.59.0
0.58.0
0.57.0
Download on NuGet
- Breaking Remove
MySqlClientFactory.Register: #654- Replace calls to this method with
DbProviderFactories.RegisterFactory("MySqlConnector", MySqlClientFactory.Instance)instead.
- Replace calls to this method with
- Breaking Return type of
MySqlConnection.BeginTransactionAsyncchanged toValueTask<MySqlTransaction>(to match .NET Core 3.0 APIs). - Breaking Various
XyzAsyncmethod overloads that did not take aCancellationTokenwere removed. - Breaking Throw
InvalidOperationExceptionfromMySqlDataReader.GetSchemaTablewhen there is no result set: #678. - Experimental Implement the new ADO.NET
DbBatchAPI: #650.- This API is not finalised and may change in the future.
- Add
netstandard2.1andnetcoreapp3.0platforms. - Implement .NET Core 3.0 ADO.NET API.
- Add .NET Core 3.0 async methods: #642.
- Allow
MySqlDataReader.GetDoubleandGetFloatonDECIMALcolumns: #664. - Allow narrowing conversions in
MySqlDataReader.GetByte: #695. - Add
MySqlGeometryandMySqlDataReader.GetMySqlGeometry: #677.- The API is deliberately different than Connector/NET, which assumes a
MySqlGeometrycan only be a simple point.
- The API is deliberately different than Connector/NET, which assumes a
- Use
sql_select_limitwhenCommandBehavior.SingleRowis specified: #679. - Use batching in
MySqlDataAdapterwhenUpdateBatchSizeis set: #675. - Support
utf8mb4_0900_bincollation introduced in MySQL Server 8.0.17: #670. - Add
MySqlConnection.CloseAsync: #467. - Throw
InvalidOperationExceptionfromMySqlConnection.EnlistTransactioninstead ofNullReferenceException. - Fix
NullReferenceExceptionthrown fromMySqlConnection.ConnectionTimeout: #669. - Fix connection timeout when executing a stored procedure: #672.
- Fix incorrect exception being thrown after a timeout occurs executing a stored procedure: #667.
- Fix exception deserializing an
OUT BOOLparameter from a stored procedure: #682. - Fix exception deserializing an
OUT TIMEparameter from a stored procedure: #680. - Fix
MySqlConnection.Statenot being set toConnectionState.Closedwhen a failure occurs if pooling is disabled: #674. - Fix exception when executing a prepared statement if
MySqlParameter.MySqlDbTypewas set: #659. - Handle error packet being sent out-of-order: #662.
- Use
MySqlErrorCode.UnableToConnectToHostin more situations when connecting fails: #647. - Add some nullable annotations; these are primarily on internal types and not in the public API.
- Reduce allocations on some common code paths.
- Improve performance of
MySqlDataReader; reduce memory allocations. - Thanks to @joshdrees for contributions to this release.
0.56.0
0.55.0
Download on NuGet
- Breaking
MySqlBulkLoader(for local files) andLOAD DATA LOCAL INFILEare disabled by default.- Set
AllowLoadLocalInfile=truein the connection string to enable loading local data. - This is a security measure; see https://fl.vu/mysql-load-data for details.
- Set
- Add
AllowLoadLocalInfileconnection string option: #643. - Add
SslCertandSslKeyconnection string options to specify a client certificate using PEM files: #641. - Add
SslCaalias for theCACertificateFileconnection string option: #640.
0.54.0
0.53.0
Download on NuGet
- Breaking
MySqlDataReader.GetTextReader()will throw anInvalidCastExceptionif the field value is NULL. Previously, it would return aStringReaderwrapping an empty string. - Add
MySqlDataReader.GetTextReader(string name). - Implement
MySqlDataReader.GetFieldValue<T>andGetFieldValueAsync<T>forTextReaderandStream: #631.