db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Re: Is this an embedded bug? scale is not adjusted if target column is real or double
Date Fri, 12 Oct 2007 15:55:52 GMT
Kathey Marsden wrote:
> For embedded,
> 
> public void *setObject*(int parameterIndex,
>                      Object 
> <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html> x,
>                      int targetSqlType)
> 
> 
> and
> 
> public void *setObject*(int parameterIndex,
>                      Object 
> <http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html> x,
>                      int targetSqlType,
>                      int scale)
> With a scale specified as zero
> 
> do not adjust the scale when the value is inserted into a double or real 
> column.  

Javadoc for that method says:

scale - for java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this 
is the number of digits after the decimal point. For all other types, 
this value will be ignored.

So it seems that embedded is correct.

Dan.

Mime
View raw message