DB2 - Problembeschreibung
Problem IC78767 | Status: Geschlossen |
DB2 MIGHT PRODUCE INCORRECT RESULTS WHEN EXECUTING A NOT IN QUERY WITH MULTIPLE NULLABLE COLUMNS | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - 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 Error Description * **************************************************************** * RECOMMENDATION: * * Please upgrade to DB2 version 970 fixpack 6 * **************************************************************** | |
Local-Fix: | |
for DPF, db2set DB2_ANTIJOIN=NO followed by restart instance for serial, None | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows | |
Lösung | |
Problem is fixed in DB2 version 970 fixpack 6 | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 19.09.2011 06.06.2012 06.06.2012 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.0 | |
Problem behoben lt. FixList in der Version | |
9.7.0.6 |