You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@vxquery.apache.org by "Vinayak Borkar (JIRA)" <ji...@apache.org> on 2012/07/10 14:18:33 UTC

[jira] [Created] (VXQUERY-45) XSDecimalPointable.setDecimal(double, byte[], int) incorrect

Vinayak Borkar created VXQUERY-45:
-------------------------------------

             Summary: 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


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

        

[jira] [Assigned] (VXQUERY-45) XSDecimalPointable.setDecimal(double, byte[], int) incorrect

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/VXQUERY-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Preston Carman reassigned VXQUERY-45:
-------------------------------------

    Assignee: Preston Carman
    
> 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

        

[jira] [Resolved] (VXQUERY-45) XSDecimalPointable.setDecimal(double, byte[], int) incorrect

Posted by "Preston Carman (JIRA)" <ji...@apache.org>.
     [ 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