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

SELECT DISTINCT QUERY FAILS WITH SQL0421 WHEN USED WITH SCROLLABLE CURSOR

product:
DB2 FOR LUW / DB2FORLUW / B10 - DB2
Problem description:
A "SELECT DISTINCT" query may fail to compile with SQLCODE -421
if it is prepared for use with a scrollable cursor and at least
one column referenced in the select-list has a column mask
defined.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* See Local Fix                                                *
****************************************************************
Local Fix:
: If possible, use a non-scrollable cursor.  Alternatively, add
an additional "SELECT *" to the original query.  E.g., if the
original query was:


   SELECT DISTINCT C1, C2 from T


Change to:


  SELECT * FROM (SELECT DISTINCT C1, C2 from T)
Solution
Workaround
****************************************************************
* USERS AFFECTED:                                              *
* ALL                                                          *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* See Local Fix                                                *
****************************************************************
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
29.10.2020
18.02.2021
18.02.2021
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)