Quantcast
Viewing all articles
Browse latest Browse all 3587

Re: Why SQL DOUBLE in preparedStatement truncated number with decimals when persisted in DB with MONEY type column?

MONEY is not Double (approximate) datatype, but is based on DECIMAL (exact) data type.

 

I don't have access to the reference right now, but you may want use a different 'set' to match the database data type as the ASE may be performing an implicit conversion from double to decimal.

 

At the least, make sure you are using the latest patch of jConnect on the client. This may already be fixed.

 

This could also me a jConnect metadata issue. JConnect patches come in two parts. The client side and the metadata sps that are installed on the server.  Making sure you have the latest might fix the issue.

 

Chris


Viewing all articles
Browse latest Browse all 3587

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>