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 IC65668 Status: Closed

SQL901 ON DOUBLE-BYTE XML PARAMETER OF TYPE SQLDD_XMLSTR_EXTENC

product:
DB2 FOR LUW / DB2FORLUW / 970 - DB2
Problem description:
Bindin of variables of type SQLDD_XMLSTR_EXTENC (external 
encoding) assumes that the length is a CLOB length, i.e. in 
characters, but XMLSTR_EXTENC can also be used to transport DBCS 
data if the codepage is set to 1200 (UCS2). In this case, we hit 
a -901 assertion because the length does not match the length of 
the buffer. Solution is to treat XMLSTR_EXTENC with codepage 
1200 the same as we treat DBCS data.
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* UDB V97 FP1 and earlier using JDBC to send XML in codepage   * 
* 1200 to the server                                           * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* Binding in of XML as an XMLSTR_EXTENC datatype was not       * 
* correctly counting the bytes if the codepage of the XML was  * 
* 1200 (external). This causes errors during bindin of these   * 
* XML values.                                                  * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to version 9.7 fix pack 2                            * 
****************************************************************
Local Fix:
Workaround is to use XMLSTR_INTENC or to avoid EXTENC with 
codepage 1200 data.
available fix packs:
DB2 Version 9.7 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.7 Fix Pack 5 for Linux, UNIX, and Windows
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 9a 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 10 for Linux, UNIX, and Windows

Solution
UDB V97 FP2 now treats SQLDD_XMLSTR_EXTENC of codepage 1200 as 
DBCS stream, not an SBCS stream, so the byte counts are 
accurate.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
19.01.2010
30.06.2010
30.06.2010
Problem solved at the following versions (IBM BugInfos)
9.7.FP2
Problem solved according to the fixlist(s) of the following version(s)
9.7.0.2 FixList