Commit ce4d015d authored by Marc Gravell's avatar Marc Gravell

(just to prove that #552 still happens even if the only values seen are 0 and 1)

parent 2b9a3d48
...@@ -3074,12 +3074,12 @@ public void Issue552_SignedUnsignedBooleans() ...@@ -3074,12 +3074,12 @@ public void Issue552_SignedUnsignedBooleans()
truncate table bar; truncate table bar;
insert bar (id, bool_val) values (1, null); insert bar (id, bool_val) values (1, null);
insert bar (id, bool_val) values (2, 0); insert bar (id, bool_val) values (2, 0);
insert bar (id, bool_val) values (3, 2); insert bar (id, bool_val) values (3, 1);
insert bar (id, bool_val) values (4, null); insert bar (id, bool_val) values (4, null);
insert bar (id, bool_val) values (5, 3); insert bar (id, bool_val) values (5, 1);
insert bar (id, bool_val) values (6, 0); insert bar (id, bool_val) values (6, 0);
insert bar (id, bool_val) values (7, null); insert bar (id, bool_val) values (7, null);
insert bar (id, bool_val) values (8, 5);"); insert bar (id, bool_val) values (8, 1);");
var rows = conn.Query<MySqlHasBool>("select * from bar;").ToDictionary(x => x.Id); var rows = conn.Query<MySqlHasBool>("select * from bar;").ToDictionary(x => x.Id);
......
...@@ -3097,7 +3097,7 @@ static LocalBuilder GetTempLocal(ILGenerator il, ref Dictionary<Type, LocalBuild ...@@ -3097,7 +3097,7 @@ static LocalBuilder GetTempLocal(ILGenerator il, ref Dictionary<Type, LocalBuild
} }
else else
{ {
il.Emit(OpCodes.Unbox_Any, unboxType); // stack is now [target][target][typed-value] il.Emit(OpCodes.Unbox_Any, unboxType); // stack is now [target][target][typed-value]
} }
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment