• Bradley Grainger's avatar
    Fix MySQL tests and disposal (#774) · a46354a2
    Bradley Grainger authored
    * Don't create the connection in Dispose: this avoids creating a SQLConnection simply to Dispose it.
    * Run MySQL tests against the open MySqlConnection: 'connection' is a protected variable in the TestBase class that is a SQL Server connection, not a MySQL connection.
    * Skip broken MySQL tests: as per issue #295, setting "AllowZeroDateTime=True" in the connection string causes an InvalidCastException in SqlMapper.
    a46354a2
TestBase.cs 2.71 KB