Skip to content

Commit 2e81e7b

Browse files
authored
correctly cache getSqlDbType map
1 parent fcc3d20 commit 2e81e7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SqlClient/ISqlCommand.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ type ``ISqlCommand Implementation``(cfg: DesignTimeConfig, connection: Connectio
149149
sprintf "%s %A" p.ParameterName p.SqlDbType
150150

151151
// helper map to resolve each parameter's target type
152-
let getSqlDbType name =
152+
let getSqlDbType =
153153
let lookup = Map.ofSeq <| Seq.zip (parameters |> Seq.map (fun (name, value) -> name))
154154
(cmd.Parameters |> Seq.cast<SqlParameter> |> Seq.map (fun p -> p.SqlDbType))
155-
Map.find name lookup
155+
fun name -> Map.find name lookup
156156

157157
seq {
158158

0 commit comments

Comments
 (0)