DB2 - Problem description
Problem IT27748 | Status: Closed |
POSSIBLE TO LOAD BAD ROWS INTO A TABLE WHICH HAS "NOT NULL" GENERATED COLUMNS WHEN COMPUTED GENERATED VALUES ARE NULL | |
product: | |
DB2 FOR LUW / DB2FORLUW / B10 - DB2 | |
Problem description: | |
Example: create table tgen (i int, j int, k int not null generated always as (i+j)) organize by row If values for columns i or j are NULL , then generated value for column k is NULL. This row therefore is invalid as k is a not null column. However it is possible to end up loading this row into the table. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to Db2 11.1 Mod 4 Fixpack 5 or higher * **************************************************************** | |
Local Fix: | |
Define both columns i and j as "not null", or otherwise ensure that the load source does not have NULL values for either of these columns | |
Solution | |
Workaround | |
not known / see Local fix | |
BUG-Tracking | |
forerunner : IT27746 follow-up : | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 11.01.2019 16.01.2020 16.01.2020 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |