• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with Db2JdbcDriver

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am currently developing a project where we are using the Db2JdbcDriver driver for database access. Our development environment is WSAD 4.0.3 and we are deploying to WAS 3.5.5. The database is DB2. I am experienceing problems retreiving data from the database that is numeric. When I retrieve fields that are numeric they are not coming back unless I cast them to DECIMAL in the SQL statement. Can anyone shed some light on this?
Thanks.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Decimal datatype is very similar to Numeric datatype. They both respresent fixed-precision decimal values.The recommended java mapping for DECIMAL AND NUMERIC is java.math.BigDecimal.
Which is the java mapping u are currently using to retirieve the numeric data.
Java-SQL Mapping
 
reply
    Bookmark Topic Watch Topic
  • New Topic