Fixes are available
DB2 Version 9.5 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 4a for Linux, UNIX, and Windows
DB2 Version 9.1 Fix Pack 8 for Linux, UNIX and Windows
DB2 Version 9.5 Fix Pack 5 for Linux, UNIX, and Windows
DB2 Version 9.1 Fix Pack 9 for Linux, UNIX and Windows
DB2 Version 9.5 Fix Pack 6a for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 7 for Linux, UNIX, and Windows
DB2 Version 9.1 Fix Pack 10 for Linux, UNIX and Windows
DB2 Version 9.5 Fix Pack 8 for Linux, UNIX, and Windows
DB2 Version 9.5 Fix Pack 9 for Linux, UNIX, and Windows
DB2 Version 9.1 Fix Pack 11 for Linux, UNIX and Windows
DB2 Version 9.1 Fix Pack 12 for Linux, UNIX and Windows
DB2 Version 9.5 Fix Pack 10 for Linux, UNIX, and Windows
APAR status
Closed as program error.
Error description
Insert of vargraphic values with trailing spaces fail when using v9 JCC T4 driver 1. db2 "create database dbu8 using codeset utf-8 territory us" 2. db2 "create table test.test (NAAMTITULARIS VARGRAPHIC (2))" 3. Insert values through a java application "insert into test.test values ('T ')" "insert into test.test values ('TT ')" "insert into test.test values ('<vgvalue> ')" "insert into test.test values ('<vgvalue> ')" Inserting: T Inserting: TT SqlGen_main : exception catch in main routine SqlGen_main : class com.ibm.db2.jcc.b.SqlException SqlGen_main : DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null The insert succeeds when using a v8 JCC T4 driver vgvalue - vargraphic value
Local fix
Use v8 JCC T4 driver
Problem summary
Insert of vargraphic values with trailing spaces fail when usin v9 JCC T4 driver 1. db2 "create database dbu8 using codeset utf-8 territory us" 2. db2 "create table test.test (NAAMTITULARIS VARGRAPHIC (2))" 3. Insert values through a java application "insert into test.test values ('T ')" "insert into test.test values ('TT ')" "insert into test.test values ('<vgvalue> ')" "insert into test.test values ('<vgvalue> ')" Inserting: T Inserting: TT SqlGen_main : exception catch in main routine SqlGen_main : class com.ibm.db2.jcc.b.SqlException SqlGen_main : DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null The insert succeeds when using a v8 JCC T4 driver
Problem conclusion
First fixed in V9 FP9
Temporary fix
Use V8 JCC Type 4 driver
Comments
APAR Information
APAR number
IZ39737
Reported component name
DB2 UDB ESE SOL
Reported component ID
5765F4102
Reported release
910
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2008-12-10
Closed date
2009-10-28
Last modified date
2009-10-28
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
DB2 UDB ESE SOL
Fixed component ID
5765F4102
Applicable component levels
R910 PSY
UP
R950 PSY
UP
Document Information
Modified date:
28 October 2009