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 | |
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 |