DB2 - Problem description
Problem IC84304 | Status: Closed |
DECODE FUNCTION MAY NOT MATCH NULL VALUES | |
product: | |
DB2 FOR LUW / DB2FORLUW / A10 - DB2 | |
Problem description: | |
When the first parameter of the DECODE function is a string type, it may not match a NULL value at an even number position of the DECODE function. This also applies to '' (empty string) when database is in ORA mode. Example: select decode (a1, null, 'null', '00') as a1 from (select cast (NULL as CHAR) as a1 from table (values(1))); returns '00' instead of 'null'. | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * All * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 10.1 Fix Pack 1. * **************************************************************** | |
Local Fix: | |
available fix packs: | |
DB2 Version 10.1 Fix Pack 1 for Linux, UNIX, and Windows | |
Solution | |
The issue is fixed in DB2 Version 10.1 Fix Pack 1. | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 13.06.2012 08.11.2012 08.11.2012 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.1.0.1 | |
10.5.0.1 |