Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC78766 Status: Geschlossen

DB2 MIGHT PRODUCE INCORRECT RESULTS WHEN EXECUTING A NOT IN QUERY WITH
MULTIPLE NULLABLE COLUMNS

Produkt:
DB2 FOR LUW / DB2FORLUW / 950 - DB2
Problembeschreibung:
Under rare scenarios, DB2 might produce incorrect results. 
 
1. The query has a NOT IN predicate 
2. The NOT IN predicate references 2 or more nullable columns 
from either parent or subselect tables or both. 
 
eg. 
create table t1 (c1 int, c2 varchar(10), c3 char(1), c4 
decimal); 
create table t4 (c1 int NOT NULL, c2 varchar(10) NOT NULL, c3 
char(1) NOT NULL, c4 decimal NOT NULL); 
 
insert into t1(c1) values NULL, NULL, 100, 200, 1000; 
insert into t4 values (1,'a', 'a', 1.0),(2,'b','b',2.0); 
 
select t1.* from t1 where (c1,c2) not in (select c1, c2 from 
t4); 
 
Correct result is 3 rows.
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* All                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See description                                              * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Please upgrade to DB2 950 fixpack 9                          * 
****************************************************************
Local-Fix:
for DPF, db2set DB2_ANTIJOIN=NO followed by restart instance 
for serial, None
verfügbare FixPacks:
DB2 Version 9.5 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
Fix is fixed included in DB2 950 fixpack 9
Workaround
keiner bekannt / siehe Local-Fix
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC78767 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
19.09.2011
12.03.2012
12.03.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
9.0.,
9.5.0
Problem behoben lt. FixList in der Version
9.5.0.9 FixList