DB2 - Problembeschreibung
Problem IC81393 | Status: Geschlossen |
INCORRECT RESULT IF A NEW TABLE DATA-CHANGE-TABLE-REFERENCE OF A SIMPLE VIEW WITH A GENERATED ALWAYS AS EXPRESSION COLUM | |
Produkt: | |
DB2 FOR LUW / DB2FORLUW / 970 - DB2 | |
Problembeschreibung: | |
Certain queries may return in correct results when they contain a NEW TABLE data-change-reference for an INSERT or UPDATE of a simple view. The view exposes a GENERATED ALWAYS AS EXPRESSION column from the base table and does not have any predicates In this case the value returned by the query for the GENERATED ALWAYS AS EXPRESSION column may be incorrect. The data stored in the table for the GENERATED ALWAYS AS EXPRESSION column is correct, and can be retrieved via a normal select column. An example is below CREATE TABLE T1 (X INT, Y INT, Z INT GENERATED ALWAYS AS (X+Y)); CREATE VIEW V1 AS SELECT * FROM T1; SELECT * FROM NEW TABLE (UPDATE V1 SET X = X+1); The value returned f from the query for column Z may be incorrect. | |
Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * All users on DB2 v97 FP5 and earlier * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade to DB2 v97 FP6 * **************************************************************** | |
Local-Fix: | |
1) Split the query into two parts, first to INSERT or UPDATE the data and a second to get the new values. 2) Add a simple predicate to the view definition. | |
verfügbare FixPacks: | |
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows | |
Lösung | |
First Fixed in DB2 v97 FP6 | |
Workaround | |
keiner bekannt / siehe Local-Fix | |
Bug-Verfolgung | |
Vorgänger : APAR is sysrouted TO one or more of the following: IC84490 Nachfolger : | |
Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 13.02.2012 21.08.2012 21.08.2012 |
Problem behoben ab folgender Versionen (IBM BugInfos) | |
9.7.FP6 | |
Problem behoben lt. FixList in der Version | |
9.7.0.6 |