Skip to content

Commit 5ef01d2

Browse files
committed
GetBoolean might be called on a decimal.
Signed-off-by: Laurents Meyer <[email protected]>
1 parent db3af37 commit 5ef01d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MySqlConnector/Core/Row.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public bool GetBoolean(int ordinal)
6161
return (long) value != 0;
6262
if (value is ulong)
6363
return (ulong) value != 0;
64+
if (value is decimal)
65+
return (decimal) value != 0;
6466
return (bool) value;
6567
}
6668

0 commit comments

Comments
 (0)