home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC84342 Status: Closed

DB2DATAADAPTER.UPDATE(DATASET) THROWS DB2EXCEPTION TRYING TO UPDATE ROW TO
SAME VALUES

product:
DB2 CONNECT / DB2CONNCT / A10 - DB2
Problem description:
After installing the the DB2 v. 9.7 FP5 the DB2DataAdapter will 
throw DB2Exception when updating a DataTable which contains an 
updated row with assigned new values the same as the original 
values (DataRowVersion.Original). 
 
Example .NET: 
 
Assume:  table T_TEST has column TESTVAL and only 1 row with 
value "test1" 
 
            DB2DataAdapter adapter = new DB2DataAdapter(); 
            adapter.SelectCommand = new DB2Command("select * 
from t_test",db2Conn); 
            DataSet ds = new DataSet(); 
            adapter.Fill(ds); 
 
            DB2CommandBuilder db2cb = new 
DB2CommandBuilder(adapter); 
            DataRow row = ds.Tables[0].Rows[0]; 
            row["TESTVAL"] = "test1"; 
 
            adapter.Update(ds); 
 
The eecution of adapter.Update(ds) will result in DB2Exception 
with message: 
 
ERROR [22540] [IBM][DB2/NT] SQL20434N  An update operation 
hasset all of its target columns to unassigned
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DB2DataAdapter.Update(DataSet) throws DB2Exception on a      * 
* table with 1 column when trying to update to same value      * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* db2_v97fp6                                                   * 
****************************************************************
Local Fix:
available fix packs:
DB2 Version 10.1 Fix Pack 1 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Solution
This defect has been returned as a duplicate of wsdbu00920495. 
When the 
duplicate parent has moved to validate state this defect will 
also move to 
validate state. Once this has occured it is IMPORTANT that the 
originator 
please verify this defect using the build that the duplicate 
parent was integrated 
into.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
13.06.2012
17.12.2012
17.12.2012
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.1 FixList
10.5.0.1 FixList