Skip to content

Commit ca40112

Browse files
authored
Code fix
1 parent eb04d40 commit ca40112

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
@@ -150,8 +150,8 @@ type ``ISqlCommand Implementation``(cfg: DesignTimeConfig, connection: Connectio
150150

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

157157
seq {

0 commit comments

Comments
 (0)