Releases: mysql-net/MySqlConnector
Releases · mysql-net/MySqlConnector
0.51.0
Download on NuGet
- Set
MySqlException.Number
toMySqlErrorCode.UnableToConnectToHost
in more situations when connecting times out: #622. - Improve handling of
MySqlConnection.Close()
withinTransactionScope
: #620. - Allow
MySqlParameter.Value
to be aReadOnlyMemory<byte>
: #624. - Thanks to @mguinness for contributions to this release.
0.50.0
Download on NuGet
- Add
MySqlClientFactory.Register()
for integration withDbProviderFactories
innetcoreapp2.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 fromnull
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
0.49.2
0.49.1
0.49.0
Download on NuGet
- Breaking The default value for the
UseAffectedRows
connection string option has changed fromtrue
tofalse
. 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 theWHERE
clause forUPDATE
statements, instead of the number of rows whose values are actually changed), or addUseAffectedRows=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.
- If you are upgrading from an earlier version of MySqlConnector, either audit your uses of the return value of
- Make
MySqlException
serializable: #601. - Set
MySqlException.Number
toMySqlErrorCode.UnableToConnectToHost
when connecting fails: #599. - Populate
MySqlException.Data
dictionary: #602.
0.48.2
0.48.1
0.48.0
Download on NuGet
- Breaking Disallow duplicate parameter names after normalization: #591.
- Potentially breaking Change default connection collation from
utf8mb4_bin
toutf8mb4_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
MySqlConnection.InfoMessage
event: #594. - Implement
ICloneable
onMySqlCommand
: #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
ifutf8mb4
isn't available. - Reduce log message severity for session discarded due to
ConnectionLifeTime
: #586. - Optimise
MySqlDataReader.GetStream
: #592. - Use latest dotnet SourceLink package.