You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Jeremy Boynes (JIRA)" <de...@db.apache.org> on 2004/11/26 00:50:22 UTC

[jira] Created: (DERBY-83) Incorrect string conversion for DECIMAL on JDK1.5

Incorrect string conversion for DECIMAL on JDK1.5
-------------------------------------------------

         Key: DERBY-83
         URL: http://nagoya.apache.org/jira/browse/DERBY-83
     Project: Derby
        Type: Improvement
  Components: SQL  
 Environment: JDK1.5
    Reporter: Jeremy Boynes


On JDK1.5, BigDecimal.toString() will use exponential notation for small values. This results in different text from SQLDecimal.getString() on 1.5 vs. earlier VMs

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DERBY-83) Incorrect string conversion for DECIMAL on JDK1.5

Posted by "Jeremy Boynes (JIRA)" <de...@db.apache.org>.
     [ http://nagoya.apache.org/jira/browse/DERBY-83?page=history ]

Jeremy Boynes updated DERBY-83:
-------------------------------

    Attachment: derby_decimal_format.patch

Patch which makes SQLDecimal use BigDecimal.toPlainString() on JDK1.5 so that generated text is the same as in prior versions.

This uses reflection to invoke toPlainString() allowing the code to be compiled on earlier VMs.

> Incorrect string conversion for DECIMAL on JDK1.5
> -------------------------------------------------
>
>          Key: DERBY-83
>          URL: http://nagoya.apache.org/jira/browse/DERBY-83
>      Project: Derby
>         Type: Improvement
>   Components: SQL
>  Environment: JDK1.5
>     Reporter: Jeremy Boynes
>  Attachments: derby_decimal_format.patch
>
> On JDK1.5, BigDecimal.toString() will use exponential notation for small values. This results in different text from SQLDecimal.getString() on 1.5 vs. earlier VMs

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DERBY-83) Incorrect string conversion for DECIMAL on JDK1.5

Posted by "Daniel John Debrunner (JIRA)" <de...@db.apache.org>.
     [ http://nagoya.apache.org/jira/browse/DERBY-83?page=history ]
     
Daniel John Debrunner resolved DERBY-83:
----------------------------------------

    Resolution: Fixed

Sending        java\engine\org\apache\derby\iapi\services\info\JVMInfo.java
Sending        java\engine\org\apache\derby\iapi\types\SQLDecimal.java
Sending        java\testing\org\apache\derbyTesting\functionTests\master\floattypes.out
Sending        java\testing\org\apache\derbyTesting\functionTests\tests\lang\floattypes.sql
Transmitting file data ....
Committed revision 106931.

> Incorrect string conversion for DECIMAL on JDK1.5
> -------------------------------------------------
>
>          Key: DERBY-83
>          URL: http://nagoya.apache.org/jira/browse/DERBY-83
>      Project: Derby
>         Type: Improvement
>   Components: SQL
>  Environment: JDK1.5
>     Reporter: Jeremy Boynes
>  Attachments: derby_decimal_format.patch
>
> On JDK1.5, BigDecimal.toString() will use exponential notation for small values. This results in different text from SQLDecimal.getString() on 1.5 vs. earlier VMs

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira