We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c28126e commit 3baee86Copy full SHA for 3baee86
src/MySqlConnector/Core/Row.cs
@@ -353,7 +353,8 @@ public double GetDouble(int ordinal)
353
public float GetFloat(int ordinal)
354
{
355
var value = GetValue(ordinal);
356
- return value is decimal decimalValue ? (float) decimalValue :
+ return value is double doubleValue ? (float) doubleValue :
357
+ value is decimal decimalValue ? (float) decimalValue :
358
(float) value;
359
}
360
0 commit comments