File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed
TypeProviderUsers/TypeProviderUser.SQLite Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ type private CommandBatchRuntimeBackend =
2929 | _ -> Other
3030 member this.MaxParameters () =
3131 match this with
32- | SQLServer -> 2100
33- | Oracle -> 2000
32+ | SQLServer -> 2098 // actual is 2100 but SqlCommand implementation takes 2 for itself
33+ | Oracle -> 1900 // actual is 2000 but leave plenty of breathing room since it's untested
3434 | Postgres
3535 | MySQL -> 10_000
3636 | SQLite
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ open Rezoom
88open Rezoom.SQL
99open Rezoom.SQL .Plans
1010open MBrace.FsPickler
11+ open Rezoom
1112
1213type TestEqualInteger = SQL< """
1314select * from Users where Id = @userId
@@ -141,6 +142,18 @@ let ``replay works`` () =
141142 ()
142143 else failwith " not equal"
143144
145+ type InsertPicture = SQL< " insert into Pictures row SHA256 = @sha, PNGData = @png" >
146+
147+ [<Test>]
148+ let ``lotsa parameters`` () =
149+ let task =
150+ plan {
151+ let g () = Guid.NewGuid() .ToByteArray()
152+ for i in batch [ 0 .. 2000 ] do
153+ do ! InsertPicture.Command( g(), g()). Plan()
154+ } |> Execution.execute Execution.ExecutionConfig.Default
155+ task.Wait()
156+
144157open Rezoom.SQL .Raw
145158open System.Data
146159
You can’t perform that action at this time.
0 commit comments