Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"NzSQLException: The update count exceeded Integer.MAX_VALUE" ERROR only on JDBC connection

When constructing a rather large table in netezza, I get the following ERROR when using a JDBC connection:

org.netezza.error.NzSQLException: The update count exceeded Integer.MAX_VALUE.

The table does get created properly, but the code throws an exception. When I try running the same SQL using nzsql I get:

INSERT 0 2395423258

i.e. no thrown exceptions. It seems the variable storing the count of records in JDBC is not large enough?

Has anyone else encountered this error? How did you deal with it?

like image 903
tipanverella Avatar asked Oct 20 '25 19:10

tipanverella


1 Answers

Modify your connection string to include ignoreUpdateCount=on as a parameter and try again.

like image 83
joebeeson Avatar answered Oct 23 '25 22:10

joebeeson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!