Skip to content

Commit

Permalink
Skip broken MySQL tests.
Browse files Browse the repository at this point in the history
As per issue DapperLib#295, setting "AllowZeroDateTime=True" in the connection
string causes an InvalidCastException in SqlMapper.
  • Loading branch information
bgrainger committed May 12, 2017
1 parent 260aa68 commit 88edda5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dapper.Tests/Providers/MySQLTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public void Issue295_NullableDateTime_MySql_ConvertZeroDatetime()
}
}

[FactMySql]
[FactMySql(Skip = "See https://github.com/StackExchange/Dapper/issues/295, AllowZeroDateTime=True is not supported")]
public void Issue295_NullableDateTime_MySql_AllowZeroDatetime()
{
using (var conn = GetMySqlConnection(true, false, true))
Expand All @@ -99,7 +99,7 @@ public void Issue295_NullableDateTime_MySql_AllowZeroDatetime()
}
}

[FactMySql]
[FactMySql(Skip = "See https://github.com/StackExchange/Dapper/issues/295, AllowZeroDateTime=True is not supported")]
public void Issue295_NullableDateTime_MySql_ConvertAllowZeroDatetime()
{
using (var conn = GetMySqlConnection(true, true, true))
Expand Down

0 comments on commit 88edda5

Please sign in to comment.