DB2 - Problem description
Problem IT27746 | 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 / A50 - 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 10.5 Fix Pack 11 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 : follow-up : IT27748 | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 11.01.2019 25.02.2020 25.02.2020 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) |