Skip to content

Commit 652a014

Browse files
Add test case for Vasily fix of passing empty TVP
1 parent 3247cbd commit 652a014

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/SqlClient.Tests/TVPTests.fs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ let SprocTupleValue() =
7272
let actual = cmd.Execute(p).Value
7373
Assert.Equal((1, Some "monkey"), actual)
7474

75+
[<Fact>]
76+
let ``SprocTupleValue works with empty table``() =
77+
let cmd = new TableValuedSprocTuple()
78+
let p = []
79+
let actual = cmd.Execute(p)
80+
Assert.Equal(None, actual)
81+
7582
type TableValuedTupleWithOptionalParams = SqlCommandProvider<"exec Person.myProc @x", ConnectionStrings.AdventureWorksNamed, AllParametersOptional = true>
7683
[<Fact>]
7784
let TableValuedTupleWithOptionalParams() =

0 commit comments

Comments
 (0)