DB2 - Problembeschreibung
Problem IC66398 | Status: Geschlossen |
DBMS_UTILITY.GET_DEPENDENCY RETURNS WRONG RESULTS IF A FUNCTION WAS CREATED WITHOUT SPECIFIC NAME SET TO THE FUNCTION NAME | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
Example with SPECIFIC NAME NOT specified: CREATE OR REPLACE FUNCTION SCHEMA1.FUNC1( data int) -- SPECIFIC FUNC1 <-- commented out RETURNS INTEGER BEGIN DECLARE x INTEGER; RETURN x; END CREATE OR REPLACE FUNCTION SCHEMA1.FUNC2() --SPECIFIC FUNC2 <- commented out RETURNS INTEGER BEGIN DECLARE retVal INTEGER; SELECT SCHEMA1.FUNC1(1) INTO retVal FROM SYSIBM.SYSDUMMY1; END CALL DBMS_UTILITY.GET_DEPENDENCY('FUNCTION', 'SCHEMA1', 'FUNC1') Return Status = 0 DEPENDENCIES ON SCHEMA1.FUNC1 ---------------------------------------------------------------- -- *FUNCTION SCHEMA1.FUNC1() Above is wrong. Correct result: CALL DBMS_UTILITY.GET_DEPENDENCY('FUNCTION', 'SCHEMA1', 'FUNC1') Return Status = 0 DEPENDENCIES ON SCHEMA1.FUNC1 ---------------------------------------------------------------- -- *FUNCTION SCHEMA1.FUNC1() * FUNCTION SCHEMA1 .FUNC2() Note if it was a PL/SQL routine, the specific name is generated to be the same as the routine name. Hence, this problem doesn't show up in PL/SQL context. | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * users of DBMS_UTILITY.GET_DEPENDENCY * **************************************************************** * PROBLEM DESCRIPTION: * * DBMS_UTILITY.GET_DEPENDENCY RETURNS WRONG RESULTS IF * * AFUNCTIONWAS CREATED WITHOUT SPECIFIC NAME SET TO THE * * FUNCTION NAME * **************************************************************** * RECOMMENDATION: * * install this fix * **************************************************************** | |
Local-Fix: | |
recreate all routines and specify specific name to be the same as routine name | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows | |
Lösung | |
DBMS_UTILITY.GET_DEPENDENCY RETURNS WRONG RESULTS IF A FUNCTION WAS CREATED WITHOUT SPECIFIC NAME SET TO THE FUNCTION NAME | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC66682 Nachfolger : | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 17.02.2010 10.06.2010 10.06.2010 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
Problem behoben lt. FixList in der Version | |
9.7.0.2 |