Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQLBase and Java

Status
Not open for further replies.

indoaryaan

IS-IT--Management
Nov 19, 2003
26
US
Hello, I am using SqlBase 7.0 with a Java application. An Amount column in a table(in SqlBase) was defined as Amount(8,2) with Decimal datatype. The java application used to access the database and fetch the data through a regular SQL "Select" query. I changed the column width and set it to Amount (12,2) with Decimal datatype. Now when the java aplication tries to get a 7 digit ( million + ) amount, the amount shows up with just 5 digits only. This happens only when the amount is ending with Zeros in the database. E.g 1000000.00 or 1000000 and the fetch would retrn and display only 10000. If the amount ends with 2 decimal points such as 1000000.01 or 1000000.99, the amount is fetched and displayed correctly as in database. Any help on this would be highly appreciated. Thanks .......
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top