Skip to content

Commit 3247cbd

Browse files
(minor) use match instead of isNull (not defined in current FSharp.Core)
1 parent 2d7893b commit 3247cbd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/SqlClient/ISqlCommand.fs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ type ``ISqlCommand Implementation``(cfg: DesignTimeConfig, connection: Connectio
177177

178178
if p.Direction.HasFlag(ParameterDirection.Input)
179179
then
180-
if isNull value then
180+
match value with
181+
| null ->
181182
p.Value <- DBNull.Value
182-
else
183+
| _ ->
183184
match p.SqlDbType with
184185
| SqlDbType.Structured ->
185186
p.Value <-

0 commit comments

Comments
 (0)