Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix query with lots of nullable columns creating stack overflow #10

Merged
merged 6 commits into from
Feb 15, 2021
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/DbTests/DbTests.fsproj
Original file line number Diff line number Diff line change
@@ -58,6 +58,7 @@
<None Include="SQL\TempTableWithLengthTypes.sql" />
<None Include="SQL\TempTableWithMaxLengthTypes.sql" />
<None Include="SQL\NominalResult.sql" />
<None Include="SQL\ManyColumns.sql" />
<None Include="facil.yaml" />
<Compile Include="Config.fs" />
<Compile Include="Utils.fs" />
13 changes: 13 additions & 0 deletions src/DbTests/ExecuteTests.fs
Original file line number Diff line number Diff line change
@@ -2807,6 +2807,19 @@ let execTests =
)
]

testList (nameof DbGen.Scripts.ManyColumns) [
yield!
allExecuteMethodsAsSingle<DbGen.Scripts.ManyColumns, _>
|> List.map (fun (name, exec) ->
testCase name <| fun () ->
let res =
DbGen.Scripts.ManyColumns
.WithConnection(Config.connStr)
|> exec
test <@ res.Value.Column1 = None @>
test <@ res.Value.Column600 = None @>
)
]

testList (nameof DbGen.Scripts.NormalParams) [
yield!
Loading