DB2 - Problembeschreibung
Problem IC73831 | Status: Geschlossen |
LOGIC ERROR WITH REVALIDATION OF RECURSIVE COMPILED TRIGGERS | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
After a recursive compiled trigger has been invalidated, a subsequent statement that revalidates the trigger may return SQL0917N "Bind package failed". Example: create table T1(c1 integer, c2 integer) % create trigger TRIG01 after update of C2 on T1 referencing old row as O new row as N for each row when (O.C2 is null) begin -- An UPDATE of T1 is required here to reproduce the failure: update T1 set T1.C2 = N.C2 where T1.C1 = N.C1; end % -- Invalidate T1's dependents (including TRIG01): alter table T1 alter column C2 set data type bigint % reorg table T1 % -- Now compile an SQL statement that references TRIG01. -- SQL917N is incorrectly returned. update T1 set C2 = 10 where C1 < 10 % connect reset % terminate % | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * SERIAL only * **************************************************************** * PROBLEM DESCRIPTION: * * See ERROR DESCRIPTION. * **************************************************************** * RECOMMENDATION: * * Apply v9.7 Fixpack 6. * **************************************************************** | |
Local-Fix: | |
Drop and recreate the trigger. | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows | |
Lösung | |
Problem was first fixed in v9.7 Fixpack 6. At minimum this fix should be applied to the server side. | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 12.01.2011 05.06.2012 05.06.2012 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP6 | |
Problem behoben lt. FixList in der Version | |
9.7.0.6 |