db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Bouschen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (JDO-206) JDOQL test NotEquals comparing floating point numbers
Date Mon, 19 Dec 2005 22:50:31 GMT
     [ http://issues.apache.org/jira/browse/JDO-206?page=all ]

Michael Bouschen updated JDO-206:

    Attachment: JDO-206.patch2

Attached you find a new patch (JDO-206.patch2) for review.

The patch changes the schema for derby and uses the coumn type REAL for all float fields.
With this change test NotEquals succeeds. I also fixed table PrimitiveTypes and changes the
column type of doubleNull and doubleNotNull to DOUBLE. 
Please note, the localSetUp change from JDO-206.patch is already checked in. 

> JDOQL test NotEquals comparing floating point numbers
> -----------------------------------------------------
>          Key: JDO-206
>          URL: http://issues.apache.org/jira/browse/JDO-206
>      Project: JDO
>         Type: Bug
>   Components: tck20
>     Reporter: Andy Jefferson
>     Assignee: Michael Bouschen
>  Attachments: JDO-206.patch, JDO-206.patch2
> The current TCK test (carried over from JDO 1.0) for NotEquals, uses != operator on floating
point numbers. This is not a good practice, and is unreliable. Its probably the case that
the Equals test uses == on the same content, which also is not a good idea (as noted in the
latest spec). These tests need reviewing and a reliable alternate strategy adopting

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message