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
Data::MySQL does not fully support decimal types. I believe the only change necessary in the 1.5.x code is to add MYSQL_TYPE_NEWDECIMAL to the fieldType() function in /Data/MySQL/src/ResultMetadata.cpp.
We can see that MYSQL_TYPE_NEWDECIMAL is already present in the fieldSize() function, but missing from fieldType().
I believe that the correct meta type to map decimal to is FDT_STRING. All of the MySQL Server test cases seem to use strings for mapping decimals. For example, see test_decimal_bug here
The text was updated successfully, but these errors were encountered:
Data::MySQL does not fully support decimal types. I believe the only change necessary in the 1.5.x code is to add MYSQL_TYPE_NEWDECIMAL to the fieldType() function in /Data/MySQL/src/ResultMetadata.cpp.
We can see that MYSQL_TYPE_NEWDECIMAL is already present in the fieldSize() function, but missing from fieldType().
I believe that the correct meta type to map decimal to is FDT_STRING. All of the MySQL Server test cases seem to use strings for mapping decimals. For example, see test_decimal_bug here
The text was updated successfully, but these errors were encountered: