First: I have an commission program built with Dephi Enterprise Berlin on win32 platform. Database is Quickbooks Version Enterprise 2017 desktop pro has its own driver for odbc for read access called QODBC that is shipped and installed with Quickbooks. So, I am using FDConnection components and they have been working fine until I upgraded to Delphi 10.2 and recompiled the program. This created an BCD overflow runtime error with all BCD fields mapped from Quickbooks.
Next: I found that changing Delphi Firedac component fdconnection to ADOconnection and I did not get the BCD error, (worked fine). Also, I continued with Firedac component FDConnection using FDQuery and was able to use the FDQuey Data Mapping rules to change dtBCD to dtDouble and that also fixed the problem.
However, this means that I will have to make this change and retest everything, not cool.
Also, when I went to Studio 10.2 Tokyo the Firedac components that are working with Firedac ODBC conponent isn't working correctly for BCD fields.
Delphi maps these fields as BCDField (Precision 13 size 2) from Quickbooks database.
Trace file and after the trace below is a grid shot showing the data with the Bcd overflow results.
However, I did notices that values in the bcd field that have a Decimal value had the overflow error and whole numbers did not.
Trace:
--- new start of FireDAC Trace ---
trace2_1
Screen shot of grid data: