Closed GoogleCodeExporter closed 9 years ago
I think this issue may be related to a problem with getting enum values
directly. For example, if you add the following unit test next to
TestEnumStrings, you'll see the following exception: "0 should be equals to Bla"
public void TestEnumValues()
{
connection.Query<TestEnum>("select 1").First().IsEqualTo(TestEnum.Bla);
connection.Query<TestEnum>("select 'Bla'").First().IsEqualTo(TestEnum.Bla);
connection.Query<TestEnum>("select 'BLA'").First().IsEqualTo(TestEnum.Bla);
}
Original comment by gsl...@gmail.com
on 30 Apr 2012 at 8:22
simple workaround.. change tinyint to tinyint unsigned in mysql solves the
problem
as the enum is byte type
Original comment by anton.he...@gmail.com
on 9 Oct 2012 at 6:00
This should now work (code, not nuget)
Original comment by marc.gravell
on 6 Aug 2014 at 3:40
Original issue reported on code.google.com by
jessebue...@gmail.com
on 3 Mar 2012 at 9:25