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

BLOCK PUSHDOWN OF <> PREDICATE WITH EMPTY STRING AGAINST ORACLE AND
UDB IN ORA-COMPAT MODE

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
A predicate <> with empty string and varchar/ vargraphic column 
can result in empty result of the query, e.g. 
 
select * from n1 where varchar_col <> '' 
 
when predicate is pushed down, the remote statement will be 
like: 
 
select * from <remote_schema>.<remote_tab_name> where 
varchar_col <> RPAD('', <length of varchar_col>) 
 
If the remote data source is Oracle or UDB in 
ora-varchar2-compat mode, the '' will be treated as NULL in 
remote database, and no record will match the predicate, 
resulting in empty result set. 
 
As requirement from one customer, we block pushdown of a <> 
predicate, given that the following condition are met: 
       1. one of the argument of <> is of lenght 0, and constant 
       2. federation db is in non ora string compat mode 
       3. remote DB is Oracle or UDB in ora mode (varchar2_mode 
server option is Y) 
       4. the other argument of <> is of varchar/vargraphic type
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* all platforms                                                * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to IFS V10.1                                         * 
****************************************************************
Local Fix:
change the predicate to varchar_col is not null
available fix packs:
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Solution
v10.1
Workaround
See Error Description
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
28.11.2012
19.12.2012
19.12.2012
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.2 FixList
10.5.0.2 FixList