BatchUpdateException.getUpdateCounts(); is returning -3 for the records irrespective of the operation is success or fail.

CallableStatement.executeBatch(); is throwing BatchUpdateException if there is an error in one of the records of batch.

But the behavior is different with mysql-connector and mariadb-client drivers.

With Mysql connector, BatchUpdateException.getUpdateCounts(); is returning -3 for the records failed and a positive integer for the successful records.

And with of MariaDB client, BatchUpdateException.getUpdateCounts(); is returning -3 for all the records. That is for both failed and successful records it is returning -3.

What changes need to be done so that, MariaDB client should behave same as Mysql connector?

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.