home clear 64x64
en blue 200x116 de orange 200x116 info letter User
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 IT07992 Status: Closed

SQL0901N WHEN A COLUMN MASK ON A NULLABLE COLUMN RETURNS A RESULT THAT IS
ALWAYS NOT NULL

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
An SQL0901N error may be returned when a column mask is defined 
on a column which is nullable, and the column mask CASE 
expression always returns a non-null result.  For example, 
assume null values can be assigned to column c1.  The following 
mask is guaranteed to return a non-null result (the integer 
constant 0 or 1): 
 
create mask m1 on t1 for column c1 return case when c1 is not 
null then 1 else 0 end enable 
 
A query which contains the masked column in the final result 
table can fail with SQL0901N.  The only known occurrence is in 
DPF 
environments, and is demonstrated in the scenario below. 
 
create table t1 (c1 varchar(10)) 
DB20000I  The SQL command completed successfully. 
 
insert into t1 values null, 0, 1, 2 
DB20000I  The SQL command completed successfully. 
 
create mask m1 on t1 for column c1 return case when c1 is not 
null then 1 else 0 end enable 
DB20000I  The SQL command completed successfully. 
 
alter table t1 activate column access control 
DB20000I  The SQL command completed successfully. 
 
select c1 from t1 
 
C1 
---------- 
SQL0901N  The SQL statement or command failed because of a 
database system error. (Reason "probe 030 in sqlkt_pack_tuple(), 
msg=cold=NULLABLE zvalue=NONULLS col(".)  SQLSTATE=58004
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All DB2 for LUW users in a DPF environment                   * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Version 10.1 Fix Pack 5                           * 
****************************************************************
Local Fix:
Solution
First fixed in Version 10.1 Fix Pack 5
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
27.03.2015
15.07.2015
15.07.2015
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.5 FixList