Hi fellow ranchers,
my application tries to insert data into sybase database.I use the
JDBC preparedstatement.It is a simple insert query.
One of the fields is field1 which is defined as Numeric(38,14) in database.But i get the error when i call the preparedstatement.executeUpdate();
-----------------------------------------------------------------
-----------------------------------------------------------------
The value passed to the preparedstatement is
preparedStatement.setDouble( 0,myBean.getField().doubleValue());
and it is 6778.68 !!!
also i use a convert function in the stored procedure when performing the insertion in the database
convert(numeric(38,14),@field1)
------------------------------------------------
can someone please suggest how to handle this situation
thanks in advance
cheers
vinny m
[ June 17, 2008: Message edited by: Vinny Menon ]