File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -299,10 +299,17 @@ public Stream GetStream(int ordinal)
299
299
public double GetDouble ( int ordinal )
300
300
{
301
301
var value = GetValue ( ordinal ) ;
302
- return value is float floatValue ? floatValue : ( double ) value ;
302
+ return value is float floatValue ? floatValue :
303
+ value is decimal decimalValue ? ( double ) decimalValue :
304
+ ( double ) value ;
303
305
}
304
306
305
- public float GetFloat ( int ordinal ) => ( float ) GetValue ( ordinal ) ;
307
+ public float GetFloat ( int ordinal )
308
+ {
309
+ var value = GetValue ( ordinal ) ;
310
+ return value is decimal decimalValue ? ( float ) decimalValue :
311
+ ( float ) value ;
312
+ }
306
313
307
314
public MySqlDateTime GetMySqlDateTime ( int ordinal )
308
315
{
Original file line number Diff line number Diff line change 10
10
</PropertyGroup >
11
11
12
12
<ItemGroup >
13
- <PackageReference Include =" AdoNet.Specification.Tests" Version =" 2.0.0-alpha4 " />
13
+ <PackageReference Include =" AdoNet.Specification.Tests" Version =" 2.0.0-alpha5 " />
14
14
<PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 15.3.0" />
15
15
<PackageReference Include =" xunit" Version =" 2.4.1" />
16
16
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.4.1" />
You can’t perform that action at this time.
0 commit comments