home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
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 IC63269 Status: Geschlossen

OR PREDICATE INCLUDING HOST VARIABLES OR PARAMETER MARKERS MAY BE
INCORRECTLY REMOVED

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
An OR predicate of the form 
 
(C1 > :HV1 
 OR 
  C1 = :HV1 AND C2 > :HV2) 
 
may be incorrectly removed if the two conditions are met 
 
1. we have an index on columns (C1,C2), AND 
2. another predicate of the following form 
 
 (C1 < :HV4) 
 
-or- 
 
 (C1 <= :HV4) 
 
Note that the predicate (C1 <= :HV4) may be transformed from (C1 
BETWEEN :HV3 AND :HV4). 
 
If users replace each host variable with a literal, this problem 
does not occur. Likewise, if parameter markers replace those 
host variables, this problem does not occur because the 
parameter markers replacing the two :HV1 are treated as two 
different parameter markers. 
 
For usages of parameter markers that hit this problem, please 
see the example below. 
 
This problem is first found in DB2 Version 9.5 Fix Pack 4 and 
Version 9.7 GA. It is fixed in DB2 Version 9.5 Fix Pack 5 and 
Version 9.7 Fix Pack 1. 
 
Example: 
 
create table t1(c1 int,c2 int,c3 int); 
create index i1 on t1(c1,c2,c3); 
 
with parm(p1,p2,p3,p4,p5) as (values (cast(? as int),cast(? as 
int),cast(? as int),cast(? as int),cast(? as int))) 
select * 
from t1,parm p 
where t1.c1 between p.p4 and p.p5 
and    ((t1.c1 > p.p1) 
          or 
          (t1.c1=p.p1 and t1.c2>p.p2) 
          or 
          (t1.c1=p.p1 and t1.c2=p.p2 and t1.c3>p.p3) 
         ) 
;
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* OR PREDICATE INCLUDING HOST VARIABLES OR PARAMETER           * 
* MARKERSMAY BE INCORRECTLY REMOVEDAn OR predicate of the      * 
* form(C1 > :HV1ORC1 = :HV1 AND C2 > :HV2)may be incorrectly   * 
* removed if the two conditions are met1. we have an index on  * 
* columns (C1,C2), AND2. another predicate of the following    * 
* form(C1 < :HV4)-or-(C1 <= :HV4)Note that the predicate (C1   * 
* <= :HV4) may be transformed from(C1BETWEEN :HV3 AND :HV4).   * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* If users replace each host variable with a literal,          * 
* thisproblem does not occur. Likewise, if parameter           * 
* markersreplace those host variables, this problem does not   * 
* occur.                                                       * 
****************************************************************
Local-Fix:
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 1 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
Problem was first fixed in version 9.7 fix pack 1.
Workaround
keiner bekannt / siehe Local-Fix
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC63297 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
18.09.2009
09.03.2010
09.03.2010
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP1
Problem behoben lt. FixList in der Version
9.7.0.1 FixList