A fix is available
APAR status
Closed as program error.
Error description
If a user tries to update a row that does not exist, there is no java.sql.SQLException or java.sql.SQLWarning thrown to indicate that the row did not exist. Since the SQLCODE is only trapped through these two objects in Java, the application thinks that the row existed and the update was successful. The problem is with legacy jdbc app/net driver.
Local fix
Use ExecutionContext.getUpdateCount() to get the number of rows updated.
Problem summary
User's Affected: All Problem summary: SQL0100W /SQLSTATE 2000 IS NOT RETURNED WHEN UPDATING A ROW THAT DOES NOT EXIST. Problem description: If a user tries to update a row that does not exist, there is no java.sql.SQLException or java.sql.SQLWarning thrown to indicate that the row did not exist. Since the SQLCODE is only trapped through these two objects in Java, the application thinks that the row existed and the update was successful. The problem is with legacy jdbc app/net driver.
Problem conclusion
First fixed in v8fp16
Temporary fix
Use ExecutionContext.getUpdateCount() to get the number of rows updated.
Comments
APAR Information
APAR number
JR27140
Reported component name
DB2 CEE WINDOWS
Reported component ID
5765F3001
Reported release
820
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2007-07-25
Closed date
2008-02-28
Last modified date
2008-05-05
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 CEE WINDOWS
Fixed component ID
5765F3001
Applicable component levels
R820 PSY
UP
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"820","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
11 October 2021