UpdateSQL component dropping decimals
Posted on 1999-07-15
Here's the problem we're having. We are using Delphi 3, and we jusr recently upgraded from Oracle 7.3 to Oracle 8i. Thus we upgraded the BDE to version 5.01 and our Oracle client to 8.05. Plus we are now using the SQLORA8.DLL.
We use cached updates everywhere and many UpdateSQL objects. We are now experiencing a problem with Oracle numeric fields that allow digits to the right of the decimal point. (Numeric(20,2)) Our TField for these columns are TBCDField and we have EnableBCD set to TRUE in our BDE. The problem is when we ApplyUpdates to one of these tables, any number (ex. 1.75) is dropping the decimal point entirely. (It's in Oracle as 175) I have traced it into the UpdateSQL component and the value seems to be correct. However, using SQL monitor, the value being passed to Oracle is NOT. In testing I have found that it has something to do with this component. There are other datasets that work that do NOT have an UpdateSQL component. As soon as I add one, it breaks.
If you have any suggestings, or if you know this is a known problem it would be appreciated.