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 IT08225 Status: Closed

SQL0401N OR SQL0901N ERROR RETURNED WHEN QUERY CONTAINS COMPLEX CASE
EXPRESSION WITH TIMESTAMP FUNCTIONS IN WHEN CLAUSE

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
Under rare conditions, DB2 may return an SQL0401N or SQL0901N 
error when a query contains a complex CASE expression with a 
TIMESTAMP 
function in the branches of a WHEN clause. 
 
Example query snippet: 
 
(CASE WHEN TEST.BEG_DT > date('12/31/2015') THEN TIMESTAMP 
(TEST.BEG_DT, '00.00.00') ELSE TIMESTAMP('12/31/2015') END) 
AND (CASE WHEN TEST.END_DT < date('04/01/2015') THEN TIMESTAMP 
(TEST.END_DT, '23.59.59')
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* db2 luw                                                      * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 v101 fixpack 5                                * 
****************************************************************
Local Fix:
Solution
Upgrade to DB2 v101 fixpack 5
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
10.04.2015
22.07.2015
01.09.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