DB2 - Problembeschreibung
| Problem IC94038 | Status: Geschlossen |
SQL20454N or SQL0204N FROM PACKAGE CURSOR QUERY CONTAINING A CURSOR PARAMETER | |
| Produkt: | |
DB2 FOR LUW / DB2FORLUW / A50 - DB2 | |
| Problembeschreibung: | |
If you have declared a parameterized cursor variable in a PL/SQL
package, DB2 may report error SQL20454N with reason code "2" if
the variable's initializer query uses one of the cursor
parameters in conjunction with the outer join operator "(+)".
For example:
create table T1(fk1 integer, fk2 integer);
create table T2(pk1 integer, pk2 integer);
create or replace package PKG as
cursor c1(v_pk1 in T2.pk1%TYPE)
is
select * from T1, T2
where T1.fk1(+) = v_pk1
and T1.fk1(+) = T2.pk2;
end PKG;
/
You may see other errors when a parameter from a package cursor
variable is used in the cursor query, including SQL0204N
("<cursor parameter>" is an undefined name). | |
| Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * ALL * **************************************************************** * PROBLEM DESCRIPTION: * * This issue is due to the presence of a cursor parameter in a * * query, when the cursor is declared either as a global * * variable or a PL/SQL package variable * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 Version 10.5 and Fix Pack 4 * **************************************************************** | |
| Local-Fix: | |
| verfügbare FixPacks: | |
DB2 Cancun Release 10.5.0.4 (also known as Fix Pack 4) for Linux, UNIX, and Windows | |
| Lösung | |
Problem was first fixed in DB2 Version 10.5 and Fix Pack 4 | |
| Workaround | |
keiner bekannt / siehe Local-Fix | |
| Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC94039 IC94040 Nachfolger : | |
| Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 11.07.2013 08.09.2014 17.10.2014 |
| Problem behoben ab folgender Versionen (IBM BugInfos) | |
| Problem behoben lt. FixList in der Version | |
| 10.5.0.4 |
|