Skip to content

Upgrading MySqlConnector 0.30 to 0.32

Breaking0.30.0 → 0.32.0Breaking8New8Changed1Fixed7Other2

BreakingUpgrade verdict

8 breaking changes.

  • 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.
Top 3 of 8 that need code or config changes
Breaking8
Breaking Remove MySqlBulkLoader.Transaction property (added in 0.24.0); MySqlBulkLoader will always use the ambient transaction, if any.
MySqlBulkLoader.TransactionMySqlBulkLoader
Breaking Throw InvalidCastException (instead of MySqlException) from MySqlDataReader.GetGuid if column is NULL.
InvalidCastExceptionMySqlExceptionMySqlDataReader.GetGuidNULL
Breaking Throw InvalidOperationException (instead of MySqlException) from MySqlConnection.ConnectionString setter if connection is open.
InvalidOperationExceptionMySqlExceptionMySqlConnection.ConnectionString
Breaking Throw ArgumentException (instead of InvalidOperationException) from MySqlConnectionStringBuilder for invalid option names.
ArgumentExceptionInvalidOperationExceptionMySqlConnectionStringBuilder
Breaking Throw InvalidOperationException if MySqlCommand.CommandText is set while the command is active.
InvalidOperationExceptionMySqlCommand.CommandText
Breaking Throw InvalidOperationException (instead of MySqlException) if a MySqlCommand is executed while there is an open reader.
InvalidOperationExceptionMySqlExceptionMySqlCommand
Breaking Throw InvalidOperationException when MySqlCommand.Connection can't be set (instead of MySqlException).
InvalidOperationExceptionMySqlCommand.ConnectionMySqlException
Breaking Throw InvalidOperationException from MySqlCommand.Prepare when preconditions aren't met.
InvalidOperationExceptionMySqlCommand.Prepare