Issue Details (XML | Word | Printable)

Key: JDO-206
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michael Bouschen
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

JDOQL test NotEquals comparing floating point numbers

Created: 05/Nov/05 03:01 PM   Updated: 21/Dec/05 01:24 AM
Return to search
Component/s: tck2
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works JDO-206.patch 2005-12-19 05:37 AM Michael Bouschen 9 kB
File Licensed for inclusion in ASF works JDO-206.patch2 2005-12-20 07:48 AM Michael Bouschen 46 kB

Resolution Date: 21/Dec/05 01:24 AM


 Description  « Hide
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

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #358029 Tue Dec 20 16:21:23 UTC 2005 mbo JDO-206: change the derby schema by using the column type REAL for all float fields.
This also fixes a bug in the table PrimitiveTypes: the type of columns doubleNull
and doubleNotNull should be DOUBLE instead of FLOAT.
Files Changed
MODIFY /db/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema.sql

Repository Revision Date User Message
ASF #358134 Tue Dec 20 22:57:22 UTC 2005 mbo JDO-206: update the derby schema files schema[1-4].sql to use the type DOUBLE
(instead of FLOAT) for all columns that are used to map double fields.
Files Changed
MODIFY /db/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema4.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema1.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema2.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema3.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema4.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema1.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema2.sql
MODIFY /db/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema3.sql