-
Notifications
You must be signed in to change notification settings - Fork 347
2.0.0
#1076
-
- Target .NET 6.0.
- Breaking Update the
MySqlBatch(experimental API) to match .NET 6.0 API changes. - Support
DateOnlyandTimeOnlystructs: Support the new BCLDateOnlyandTimeOnlystructs #963 . - Use
ZLibStreamfor compression: Use ZLibStream for compression #957 . - Use
X_OR_GREATERpreprocessor definitions: Use new OR_GREATER preprocessor symbols for version checks #958 .
- Breaking Update the
- Breaking Improve
MySqlBulkCopyAPI: Improve MySqlBulkCopy API #1012 . - Breaking Remove
ConnectionIdlePingTime: Don't ping when Connection Reset = false #1042 .- The
Connection Idle Ping Timeconnection string option is still accepted, but has no effect. - If
Connection Reset = False,MySqlConnection.Openwill return a pooled connection (if one is available) without testing it for liveness (by pinging the server). This improves performance but may degrade reliability. (Connection Reset = True, which is the default, is still recommended for greatest reliability.) - If the server has closed the pooled connection,
MySqlConnection.Openwill succeed, but the first operation on that connection will fail. Command execution should be wrapped in a try/catch/retry loop to handle this scenario.
- The
- Breaking Change how option keys are serialized when retrieving the
MySqlConnectionStringBuilder.ConnectionStringproperty:- For example,
User Idis nowUser ID,DefaultCommandTimeoutis nowDefault Command Timeout, etc. - All existing connection strings are still valid, and all the previous aliases for connection string options are still accepted.
- The primary connection string option key is listed first in the documentation at https://mysqlconnector.net/connection-options/.
- For example,
- Breaking Seal
MySqlCommandBuilderandMySqlConversionException. - Remove
netstandard1.3andnetcoreapp2.1target frameworks: Removenetstandard1.3support #1031 , Removenetcoreapp2.1support #1067 . - Add
ActivitySourcefor tracing: Add ActivitySource #1036 . - Reduce default log message severity: Reduce log message severity #981 .
- Add
MySqlConnection.ProvideClientCertificatesCallback,MySqlConnection.ProvidePasswordCallback,MySqlConnection.RemoteCertificateValidationCallback: RDS/Aurora IAM Database Authentication and Connection Pooling #800 , [New Feature] Passing Certificate in X509Certificate/X509Certificate2 format rather than physical paths #976 . - Support
BigIntegeras parameter value: Support BigInteger parameter #1069 . - Add more values to
MySqlErrorCode: Add additional MySQL error codes #1048 . - Make
MySqlError.Codeobsolete: Replace MySqlError.Code with ErrorCode #1011 .- Use
ErrorCodeproperty instead.
- Use
- Remove
BackgroundConnectionResetHelper: Remove BackgroundConnectionResetHelper (used by DeferConnectionReset=false) #1013 .MySqlConnectionStringBuilder.DeferConnectionResetis obsolete and will always be treated as if it'strue.
- Add NuGet package READMEs: Add package README to all packages #1053 .
- Add
[Category],[DefaultValue], and[Description]attributes to allMySqlConnectionStringBuilderproperties. - Improve performance of Regex usage internally.
- Throw an informative exception if
DELIMITERis used in a SQL statement: Better exception ifDELIMITERis used #1010 . - Fix
MySqlConnectionStringBuilder.TryGetValue: MySqlConnectionStringBuilder does not implement ICustomTypeDescriptor correctly #1030 . - Fix incorrect value for
MySqlCommand.LastInsertedIdwhen executing multiple commands: MySqlCommand.LastInsertedId #1026 . - Fix bug executing stored procedures with backticks in their names: Procedure name is not escaped when using CommandType.StoredProcedure #1029 .
- Fix rare
ObjectDisposedExceptionthat could be thrown when a connection timeout occurred.
This discussion was created from the release 2.0.0.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment