DB2 - Problembeschreibung
Problem IC64198 | Status: Geschlossen |
SQL901 (REASON "COLUMN NUMBER OUT OF RANGE".) WHILE SELECTING DATA FROM TABLE AFTER DROPPING SOME COLUMNS. | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
DB2 throws SQL901 (Reason "column number out of range".) while selecting data from table after dropping some columns. Test case: drop table sample.tab1; create table sample.tab1 ( c1 int, c2 int, c3 int not null, c4 int not null, ref_c3 int, ref_c4 int, primary key (c3, c4) ); alter table sample.tab1 add constraint self_ref_fk foreign key (ref_c3, ref_c4) references sample.tab1 (c3, c4) on update restrict on delete restrict; insert into sample.tab1 (c3, c4, ref_c3, ref_c4) values (1, 2, 1, 2); alter table sample.tab1 drop column c1; reorg table sample.tab1; insert into sample.tab1 (c3, c4, ref_c3, ref_c4) values (3, 4, 3, 4); The last insert statement fails with: insert into sample.tab1 (c3, c4, ref_c3, ref_c4) values (3, 4, 3, 4) DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL0530N The insert or update value of the FOREIGN KEY "SAMPLE.TAB1.SELF_REF_FK" is not equal to any value of the parent key of the parent table. SQLSTATE=23503 However, it SHOULD have been able to insert the row! Another symptom of this problem can be the -901. | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * Users prior to DB2 V97 FP2 * **************************************************************** * PROBLEM DESCRIPTION: * * SQL901 (REASON "COLUMN NUMBER OUT OF RANGE".) * * WHILESELECTINGDATA FROM TABLE AFTER DROPPING SOME COLUMNS. * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 V97 FP2. * **************************************************************** | |
Local-Fix: | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows | |
Lösung | |
Problem is first fixed in DB2 V97 FP2. Upgrade to DB2 V97 FP2. | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 27.10.2009 22.06.2010 22.06.2010 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP2 | |
Problem behoben lt. FixList in der Version | |
9.7.0.2 |