home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Neueste VersionenFixList
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
Haben Sie Probleme? - Kontaktieren Sie uns.
Kostenlos registrieren anmeldung-x26
Kontaktformular kontakt-x26

DB2 - Problembeschreibung

Problem IC82783 Status: Geschlossen

.NET APPLICATION : PARAMETERS ARE PROCESSED IN INCORRECT ORDER

Produkt:
DB2 CONNECT / DB2CONNCT / 970 - DB2
Problembeschreibung:
If you have a .NET application that is using ParameterName in 
your query to update (or insert) a clob > 32K and another 
column, 
you might encounter a data corruption because the command 
paramaters 
are processed in incorrect order. 
 
The following example will insert "CLOBTEST" in cclob column and 
"Some long CLOB value padded...." in the column col2 when we 
expect the opposite. 
 
string clobValue = "Some long CLOB value padded with '-' to 
33,000 characters".PadRight(33000, '-'); 
using (var conn = new DB2Connection(bld.ConnectionString)) 
{ 
var update = new DB2Command(string.Format("UPDATE tab1 SET 
cclob=@CCLOB, col2=@COL2 WHERE col1 ='{0}' ",col1Value), conn); 
 
var col2 = update.Parameters.Add("@COL2", DB2Type.Char); 
var cclob = update.Parameters.Add("@CCLOB", DB2Type.Clob); 
 
cclob.Value = clobValue; 
col2.Value = "CLOBTEST"; 
conn.Open(); 
update.ExecuteNonQuery(); 
}
Problem-Zusammenfassung:
**************************************************************** 
* USERS AFFECTED:                                              * 
* DB2 .NET                                                     * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Error Description                                        * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 9.7 FP6 or above.                             * 
****************************************************************
Local-Fix:
N/A
verfügbare FixPacks:
DB2 Version 9.7 Fix Pack 6 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 9a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 10 for Linux, UNIX, and Windows

Lösung
The problem was first fixed in DB2 9.7 FP6
Workaround
keiner bekannt / siehe Local-Fix
Weitere Daten
Datum - Problem gemeldet    :
Datum - Problem geschlossen :
Datum - der letzten Änderung:
20.04.2012
20.12.2012
20.12.2012
Problem behoben ab folgender Versionen (IBM BugInfos)
9.7.FP6
Problem behoben lt. FixList in der Version
9.7.0.6 FixList