suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IT38996 Status: Closed

INSERTING DECIMAL MINUS ZERO INTO COLUMN ORGANIZED TABLE LEADS TO WRONG
RESULT ON POWERPC

product:
DB2 FOR LUW / DB2FORLUW / B50 - DB2
Problem description:
Inserting DECIMAL minus zero into column organized table leads
to wrong result on PowerPC.

DECIMAL minus zero provided via LOAD, IMPORT or CLI get inserted
correctly.

Repro:

Create file decmin.csv:
ID|DISCOUNT
3|-0.000

create table decmin (id int not null, discount decimal(20,10))
create external table decmin_extern (id int, discount
decimal(20,10)) using (dataobject ('/home/support/decmin.csv')
delimiter '|' escapechar '\' quotedvalue DOUBLE maxerrors 10
encoding utf8 skiprows 1)
insert into decmin select id+10, discount from decmin
select * from decmin

Create output:
ID          DISCOUNT
----------- ----------------------
          3 -1844674407.3709551616

Expected:
ID          DISCOUNT
----------- ----------------------
          0           0.0000000000
Problem Summary:
See Error Description
Local Fix:
Avoid inserting -0.0 into DECIMAL column.
Solution
Workaround
See Error Description
Comment
Fix will be included in Db2 v11.5.7.1.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
06.11.2021
09.11.2021
09.12.2021
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)