My Oracle Support Banner

Oracle JDBC 11.2 Statement.getUpdateCount() Returns Negative Number (Doc ID 2125139.1)

Last updated on AUGUST 30, 2023

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


Oracle JDBC statement.getUpdateCount() returns negative number for the record count over 2.2 billion. The getUpdateCount method return type is integer, so the value is over flowing and ending up in negative value.
Even though all the records get inserted just fine, the count returned is wrong.

What is version of the driver that this issue is fixed?



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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.