You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by "Preston Carman (JIRA)" <ji...@apache.org> on 2012/08/22 00:32:38 UTC
[jira] [Resolved] (VXQUERY-45)
XSDecimalPointable.setDecimal(double, byte[], int) incorrect
[ https://issues.apache.org/jira/browse/VXQUERY-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Preston Carman resolved VXQUERY-45.
-----------------------------------
Resolution: Fixed
The double to decimal is now handled by the cast functionality and passes the casting tests.
> XSDecimalPointable.setDecimal(double, byte[], int) incorrect
> ------------------------------------------------------------
>
> Key: VXQUERY-45
> URL: https://issues.apache.org/jira/browse/VXQUERY-45
> Project: VXQuery
> Issue Type: Bug
> Reporter: Vinayak Borkar
> Assignee: Preston Carman
>
> The conversion of double to bytes for xs:decimal is incorrect. The code simply ignores a the sign of the value and also any possible exponent.
> For example, try the following queries:
> -- start query1 --
> 65535032.0023
> -- end query 1 --
> -- start query 2 --
> -65535032.0023
> -- end query 2 --
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira