DB2 - Problem description
Problem IT04307 | Status: Closed |
INCORRECT RESULTS FROM A COLUMN-ORGANIZED TABLE WHEN OPERATIONS INCLUDE NEGATIVE FLOAT/DOUBLE VALUES AND A RESULT OF ZERO | |
product: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
Problem description: | |
If an arithmetic expression occurs between negative floating point values that yields a 0 result, then the query may return incorrect results for a column-organized table. The following is an example of an operation that could give a wrong result: create table test (col1 integer, col2 float, col3 int, col4 float) organize by column; DB20000I The SQL command completed successfully. insert into test values (0,1,0,-1); DB20000I The SQL command completed successfully. select (col1/col2),(col3/col4) from test; 1 2 ------------------------ ------------------------ +0.00000000000000E+000 +0.00000000000000E+000 1 record(s) selected. unexpected result: select * from (select col1/col2 as a ,col3/col4 as b from test) where a=b; A B ------------------------ ------------------------ 0 record(s) selected. With the fix: select * from (select col1/col2 as a ,col3/col4 as b from test) where a=b; A B ------------------------ ------------------------ +0.00000000000000E+000 +0.00000000000000E+000 1 record(s) selected. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All users * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 version 10.5.0.5. * **************************************************************** | |
Local Fix: | |
Solution | |
The problem is first fixed in DB2 version 10.5.0.5. | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 09.09.2014 09.04.2015 09.04.2015 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.5.0.5 |