BatchUpdateException.getUpdateCounts() Returns Wrong Result In Specific Conditions
(Doc ID 2682919.1)
Last updated on JUNE 29, 2020
Applies to:JDBC - Version 220.127.116.11.0 and later
Information in this document applies to any platform.
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.
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