We help IT Professionals succeed at work.
Get Started

UpdateSQL component dropping decimals

gjbaker asked
Last Modified: 2010-04-06
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.

Greg Baker
Watch Question
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE