BatchUpdateException.getUpdateCounts() Returns Wrong Result In Specific Conditions
(Doc ID 2682919.1)
Last updated on NOVEMBER 12, 2021
Applies to:
JDBC - Version 12.2.0.0.0 and laterInformation in this document applies to any platform.
Symptoms
BatchUpdateException.getUpdateCounts() returns wrong result in specific conditions like below.
- First batch returns ORA-1 due to duplicate primary key.
- Second batch returns ORA-1400 since it is trying to insert null to primary key.
In this case, the result of BatchUpdateException.getUpdateCounts() is expected to be empty but returns 1.
Code image:
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |