A fix is available
APAR status
Closed as program error.
Error description
DB2 server returns incorrect SQLTYPE to the JDBC driver causes the application to encounter the following error: [jcc][Thread:main][SQLException@c225a608] Message = Illegal conversion: can not convert from "java.lang.long" to "byte[]" ERRORCODE=-4474, SQLSTATE=null
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All DB2 10 and 11 for z/OS users of an SQL * * statement containing a common table * * expression that is not referenced and with a * * parameter marker or host variable. * **************************************************************** * PROBLEM DESCRIPTION: Incorrect data type could be returned * * for a DESCRIBE statement on an SQL * * statement satisfying all of the * * following conditions: * * * * 1. It contains a common table * * expression. * * 2. The common table expression contains * * a parameter marker or host variable. * * 3. The common table expression is not * * referenced in the SQL statement. * **************************************************************** * RECOMMENDATION: * **************************************************************** An example is shown below: CREATE TABLE T1 (C1 INT, C2 INT); WITH CT1 AS ( SELECT * FROM T1 WHERE C1 = ? ) SELECT * FROM T1 ; DESCRIBE returns incorrect data type for the parameter marker as CTE1 is not referenced in the SQL statement. If the SQL statement is executed though JDBC, an error message "Illegal conversion" with ERRORCODE=-4474 could be returned.
Problem conclusion
DB2 has been modified to correctly process the aforementioned SQL statement. Additional keywords: SQLCTE SQLHOSTVAR PARAMETERMARKER SQLPMARKER SQLPMK
Temporary fix
Comments
APAR Information
APAR number
PI72476
Reported component name
DB2 OS/390 & Z/
Reported component ID
5740XYR00
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-11-16
Closed date
2017-01-12
Last modified date
2017-02-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI43892 UI43893
Modules/Macros
DSNXOQ2
Fix information
Fixed component name
DB2 OS/390 & Z/
Fixed component ID
5740XYR00
Applicable component levels
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEPEK","label":"Db2 for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.1","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
01 February 2017