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 IC76679 Status: Geschlossen

INCORRECT RESULTS ARE RETURNED IF AN SQL QUERY CONTAINS RID(), RID_BIT() or
ROWID

Produkt:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problembeschreibung:
Incorrect results are returned if a query contains RID(), 
RID_BIT() or ROWID. 
 
Example: 
 
db2 => CREATE TABLE  TA(C1 VARCHAR(30), C2 VARCHAR(3)) 
db2 => CREATE TABLE  TB(C1 VARCHAR(50), c2 VARCHAR(3)) 
 
db2 => INSERT INTO TA VALUES('EAD0401','abc') 
db2 => INSERT INTO TB VALUES('Z030_075','123') 
 
Incorrect result 1 row is returned for below SQL: 
 
SELECT 
    A.ROWID, 
    A.C1 
FROM TA A, TB B 
WHERE ( A.C2 = 'XX' 
        OR (A.C1 = 'EAD0401' AND B.C1 = 'XXX') 
        OR (A.C1 = 'XXX' AND B.C1 = 'XXX') 
      ); 
 
1                                  C1 
--------------------------------------------------------------- 
 
 
x'04000000000000000000A204F3040000' EAD0401 
 
The expected result is 0 row. 
 
This problem only occurs with DB2 V9.7 and does not affect V9.1 
or V9.5.
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* user of ROWID function                                       * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* Incorrect results are returned if a query contains RID(),    * 
* RID_BIT() or ROWID.                                          * 
*                                                              * 
* Example:                                                     * 
*                                                              * 
* db2 => CREATE TABLE  TA(C1 VARCHAR(30), C2 VARCHAR(3))       * 
* db2 => CREATE TABLE  TB(C1 VARCHAR(50), c2 VARCHAR(3))       * 
*                                                              * 
* db2 => INSERT INTO TA VALUES('EAD0401','abc')                * 
* db2 => INSERT INTO TB VALUES('Z030_075','123')               * 
*                                                              * 
* Incorrect result 1 row is returned for below SQL:            * 
*                                                              * 
* SELECT                                                       * 
*     A.ROWID,                                                 * 
*     A.C1                                                     * 
* FROM TA A, TB B                                              * 
* WHERE ( A.C2 = 'XX'                                          * 
*         OR (A.C1 = 'EAD0401' AND B.C1 = 'XXX')               * 
*         OR (A.C1 = 'XXX' AND B.C1 = 'XXX')                   * 
*       );                                                     * 
*                                                              * 
* 1                                  C1                        * 
* ------------------------------------------------------------ * 
* ---                                                          * 
*                                                              * 
*                                                              * 
* x'04000000000000000000A204F3040000' EAD0401                  * 
*                                                              * 
* The expected result is 0 row.                                * 
*                                                              * 
* This problem only occurs with DB2 V9.7 and does not affect   * 
* V9.1                                                         * 
* or V9.5.                                                     * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Install this APAR                                            * 
****************************************************************
Local-Fix:
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 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 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
Install this APAR
Workaround
keiner bekannt / siehe Local-Fix
Bug-Verfolgung
Vorgänger  : APAR is sysrouted TO one or more of the following: IC83445 
Nachfolger : 
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
30.05.2011
01.11.2011
01.11.2011
Problem behoben ab folgender Versionen (IBM BugInfos)
Problem behoben lt. FixList in der Version
9.7.0.5 FixList