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

INCORRECT OUTPUT MIGHT BE RETURNED FOR QUERIES CONTAINING A DISTINCT CLAUSE
AND DBPARTITIONNUM FUNCTION IN THE SELECT LIST.

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
You might encounter incorrect output from a SQL statement that 
satisfies all the following conditions: 
 
1.  a DISTINCT clause in the SELECT list; 
2.  two or more references to table T; 
3.  if there are k >1 references to table T and a DBPARTITIONNUM 
function in the SELECT list on <= k-1 of the references to T 
4.  A restriction on the set of database partitions in the WHERE 
clause (e.g. DBPARTITIONNUM(T.a)=0) on the references to T on 
which the DBPARTITIONNUM function in the select list applies
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* Problem occurs in DPF environment only.                      * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* You might encounter incorrect output from a SQL statement    * 
* that                                                         * 
* satisfies all the following conditions:                      * 
*                                                              * 
*                                                              * 
*                                                              * 
* 1.  a DISTINCT clause in the SELECT list;                    * 
*                                                              * 
* 2.  two or more references to table T;                       * 
*                                                              * 
* 3.  if there are k >1 references to table T and a            * 
* DBPARTITIONNUM                                               * 
* function in the SELECT list on <= k-1 of the references to T * 
*                                                              * 
* 4.  A restriction on the set of database partitions in the   * 
* WHERE                                                        * 
* clause (e.g. DBPARTITIONNUM(T.a)=0) on the references to T   * 
* on                                                           * 
* which the DBPARTITIONNUM function in the select list applies * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Version 9.7 Fix Pack 5                        * 
****************************************************************
Local Fix:
Modify the statement by moving the multiple references to table 
T into separate query blocks.
available fix packs:
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

Solution
Problem was first fixed in DB2 Version 9.7 Fix Pack 5
Workaround
see LOCAL FIX
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
22.06.2011
09.12.2011
09.12.2011
Problem solved at the following versions (IBM BugInfos)
9.7.FP5
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.5 FixList