Closed stefanofornari closed 5 months ago
The current implementation of executeBatch() returns a wrong number of effected rows given the underlying driver does not provide such information. In the line below, rowCounts[] is updated with 1 for each statement in batch:
executeBatch()
rowCounts[]
https://github.com/ing-bank/cassandra-jdbc-wrapper/blob/3ab76c07bf043cf93670b636452e0b4de53af29c/src/main/java/com/ing/data/cassandra/jdbc/CassandraPreparedStatement.java#L282
Accordingly to executeBatch() javadoc it should be updated with SUCCESS_NO_INFO.
Good catch @stefanofornari, I'll fix this asap.
Will be fixed in the next release (see commit https://github.com/ing-bank/cassandra-jdbc-wrapper/commit/40f81093875331c967026c1de4fd2dbf5bc31219).
The current implementation of
executeBatch()
returns a wrong number of effected rows given the underlying driver does not provide such information. In the line below,rowCounts[]
is updated with 1 for each statement in batch:https://github.com/ing-bank/cassandra-jdbc-wrapper/blob/3ab76c07bf043cf93670b636452e0b4de53af29c/src/main/java/com/ing/data/cassandra/jdbc/CassandraPreparedStatement.java#L282
Accordingly to
executeBatch()
javadoc it should be updated with SUCCESS_NO_INFO.