Posted: Thu Jun 15, 2006 6:01 am Post subject: Numeric data types in JDBC adapter
Newbie
Joined: 17 May 2006 Posts: 5
Hi,
Can anyone shed any light on how to get a numeric (9,9) e.g .100000000 in or out of a database using the WBIA JDBC adapter through WPS/WID?
We are using SQL Server. WBIA JDBC Adapter 2.6.0 and WID
The ODA defualts to creating a business object from such a table with an integer to represent the numeric. A little odd and we suspected this wouldn't work and it doesn't!!! WebSphere Process server running under WID throws a Number format exception trying to convert the input string from the adapter into an int unsurprisingly. Changing the business object to have a string column solves this to get the data into WPS.
To get the numeric back into a WBIA adapter trying to write to a numeric 9,9 is equally problematic! Even assuming there might be some clever conversion going on sending a integer value of 1 (to see what might happen!) through the WID test tool results in the adapter throwing an arithmetic overflow error converting numeric to data type numeric.
Changing the type to string and putting the correct format numeric in, leads to a number format exception in the WBIA JDBC adapter.
Can anyone shed any light - can these adapters deal with numerics?!?
Thanks Jeff, unfortunately long is a type supported by the Business Object designer, nor Websphere Integration Developer when selecting data types for the business object.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum