-
Notifications
You must be signed in to change notification settings - Fork 191
Closed
Description
The Decimal
column from Oracle DB can produce an overflow of the corresponding .NET decimal
.
Eccezione non gestita: System.InvalidCastException: Cast specificato non valido.
in Oracle.ManagedDataAccess.Client.OracleDataReader.GetDecimal(Int32 i)
in Oracle.ManagedDataAccess.Client.OracleDataReader.GetValue(Int32 i)
in Sql2Xlsx.Oracle.<Read>d__3.MoveNext() in C:\dev\SqlServer\Sql2Xlsx\Oracle.cs:riga 102
A workaround is needed.
// decimal overflow workaround
field.ObjValue =
field.DataType == "Decimal"?
DR.GetDouble(i) :
DR.GetValue(i);
Please forward and fix the code in the Oracle .NET Managed driver, thanks
Metadata
Metadata
Assignees
Labels
No labels