APAR status
Closed as program error.
Error description
DB2 zOS does not support untyped parameters in the LIKE ESCAPE function of SQL for MIXED datatypes. EclipseLink needs to be updated to disable parameter binding for the escape clause.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server - Java Persistence API - JPA 2.1 & * * EclipseLink * **************************************************************** * PROBLEM DESCRIPTION: EclipseLink uses untyped parameter * * markers for the LIKE ESCAPE function. * * For MIXED datatypes, DB2 throws * * an exception on execute * **************************************************************** * RECOMMENDATION: * **************************************************************** Test: Query query = em.createQuery("SELECT s.intVal1 FROM SimpleEntity s WHERE ?1 LIKE ?2 ESCAPE ?3"); query.setParameter(1, "HELLO"); query.setParameter(2, "WORLD"); query.setParameter(3, 'O'); query.getResultList(); Exception: com.ibm.db2.jcc.am.SqlDataException: DB2 SQL Error: SQLCODE=-130, SQLSTATE=22019, SQLERRMC=null, DRIVER=4.24.92
Problem conclusion
The fix for this APAR changes the EclipseLink implementation and involves an update to the third-party source. See https://github.com/eclipse-ee4j/eclipselink/issues/1735 This fix is currently targeted for WebSphere Application Server 9.0.5.16 and WebSphere Liberty 23.0.0.4. For more information, see 'Recommended Updates for WebSphere Application Server': https://www.ibm.com/support/pages/node/715553
Temporary fix
Comments
APAR Information
APAR number
PH51978
Reported component name
WEBSPHERE APP S
Reported component ID
5724J0800
Reported release
900
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-01-17
Closed date
2023-04-14
Last modified date
2023-04-14
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
WEBSPHERE APP S
Fixed component ID
5724J0800
Applicable component levels
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
15 April 2023