You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when using the odbc driver with an Oracle database my program crashed with an exception ("Type 3 not supported").
I could fix this by adding a case to the switch statement in line: 922 of file drivers/odbcddbc.d:
caseSQL_DECIMAL: return readValue!(char[]);
I'm not experienced with SQL (i want to use ddbc for a sql course at my university) so maybe i miss some subtle issue with this.
It also works to convert it to double like this,
caseSQL_DECIMAL: return readValue!double;
but in my case the decimal type is used to store user IDs and converting to a floating point type would make no sense...
Activity
SingingBush commentedon Dec 9, 2019
DECIMAL can be various types depending on the precision that was used:
So it should probably attempt to convert to whichever number type the user is using and error if the data cannot convert correctly.