Commit b55cc9a4 authored by mgravell's avatar mgravell

test for SO7908830

parent 6d16ac8f
......@@ -342,6 +342,26 @@ public void TestEnumerationDynamic()
gotException.IsTrue();
}
public void TestNakedBigInt()
{
long foo = 12345;
var result = connection.Query<long>("select @foo", new {foo}).Single();
foo.IsEqualTo(result);
}
public void TestBigIntMember()
{
long foo = 12345;
var result = connection.Query<WithBigInt>(@"
declare @bar table(Value bigint)
insert @bar values (@foo)
select * from @bar", new {foo}).Single();
result.Value.IsEqualTo(foo);
}
class WithBigInt
{
public long Value { get; set; }
}
class User
{
......
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