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

LPAD/RPAD RETURN EMPTY STRING INSTEAD OF NULL IN ORA-MODE DATABASE

product:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problem description:
Builtin functions SYSIBM.LPAD and SYSIBM.RPAD should return NULL 
instead of an empty string in an ORA-mode database.  In DB2 
v11.1.2 only, if all the arguments are constants, and the second 
argument is 0, an empty string is returned instead of the 
expected NULL: 
 
     values (lpad('abc',0), length(lpad('abc',0))) 
 
     1 2 
     - ----------- 
                 0 
 
       1 record(s) selected. 
 
 
The correct result should be: 
 
     values (lpad('abc',0), length(lpad('abc',0))) 
 
     1 2 
     - ----------- 
     -           - 
 
       1 record(s) selected.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to Db2 11.1 Mod 2 Fix Pack 2 iFix002 or higher       * 
****************************************************************
Local Fix:
Enable statement concentrator on the database: 
 
     update db cfg for <dbname> using stmt_conc literals
available fix packs:
Db2 Version 11.1 Mod2 Fix Pack2 iFix002 for Linux, UNIX, and Windows
Db2 Version 11.1 Mod 3 Fix Pack 3 for Linux, UNIX, and Windows
Db2 Version 11.1 Mod3 Fix Pack3 iFix001 for Linux, UNIX, and Windows
Db2 Version 11.1 Mod3 Fix Pack3 iFix002 for Linux, UNIX, and Windows

Solution
First fixed in Db2 11.1 Mod 2 Fix Pack 2 iFix002
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
26.10.2017
22.12.2017
22.12.2017
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)