Upgrading MySqlConnector 0.30 to 0.32
Breaking0.30.0 → 0.32.0Breaking8New8Changed1Fixed7Other2
BreakingUpgrade verdict
8 breaking changes.
In plain terms
- Breaking Remove MySqlBulkLoader.Transaction property (added in 0.24.0); MySqlBulkLoader will always use the ambient transaction, if any.
- Breaking Throw InvalidCastException (instead of MySqlException) from MySqlDataReader.GetGuid if column is NULL.
- Breaking Throw InvalidOperationException (instead of MySqlException) from MySqlConnection.ConnectionString setter if connection is open.
- Breaking Throw ArgumentException (instead of InvalidOperationException) from MySqlConnectionStringBuilder for invalid option names.
Must act Top 3 of 8 that need code or config changes
What you must change
Breaking8
Breaking Remove MySqlBulkLoader.Transaction property (added in 0.24.0); MySqlBulkLoader will always use the ambient transaction, if any.
MySqlBulkLoader.TransactionMySqlBulkLoaderBreaking Throw InvalidCastException (instead of MySqlException) from MySqlDataReader.GetGuid if column is NULL.
InvalidCastExceptionMySqlExceptionMySqlDataReader.GetGuidNULLBreaking Throw InvalidOperationException (instead of MySqlException) from MySqlConnection.ConnectionString setter if connection is open.
InvalidOperationExceptionMySqlExceptionMySqlConnection.ConnectionStringBreaking Throw ArgumentException (instead of InvalidOperationException) from MySqlConnectionStringBuilder for invalid option names.
ArgumentExceptionInvalidOperationExceptionMySqlConnectionStringBuilderBreaking Throw InvalidOperationException if MySqlCommand.CommandText is set while the command is active.
InvalidOperationExceptionMySqlCommand.CommandTextBreaking Throw InvalidOperationException (instead of MySqlException) if a MySqlCommand is executed while there is an open reader.
InvalidOperationExceptionMySqlExceptionMySqlCommandBreaking Throw InvalidOperationException when MySqlCommand.Connection can't be set (instead of MySqlException).
InvalidOperationExceptionMySqlCommand.ConnectionMySqlExceptionBreaking Throw InvalidOperationException from MySqlCommand.Prepare when preconditions aren't met.
InvalidOperationExceptionMySqlCommand.Prepare