[CONJ-525] Batched Queries failing to be validated by Hibernate Created: 2017-09-12 Updated: 2017-09-21 Resolved: 2017-09-21 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | batch |
| Affects Version/s: | 2.1.0, 2.1.1 |
| Fix Version/s: | 1.6.5, 2.1.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleksandr Ierenkov | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
PreparedStatement st = connection.prepareStatement("delete from temp_t where col1 = ?"); When I run Batched Queries in 1.6.4 or 2.0.3 I got two results, exactly what I expect; When the same code ran in 2.1.0 or 2.1.1 In case if newer driver used with Hibernate, we face fail, since it traverse through whole array and throw Exception on negative values - it's in this class org.hibernate.engine.jdbc.batch.internal.BatchingBatch.checkRowCounts() |
| Comments |
| Comment by Oleksandr Ierenkov [ 2017-09-12 ] | ||||||||||||||||
|
I believe "return;" after this line Could solve the issue, but is it safe - I don't know | ||||||||||||||||
| Comment by Diego Dupin [ 2017-09-20 ] | ||||||||||||||||
|
you PR will correct that (https://github.com/MariaDB/mariadb-connector-j/pull/112). At the same time, I'll create an issue server side, there is no reason for delete to be not possible. | ||||||||||||||||
| Comment by Diego Dupin [ 2017-09-21 ] | ||||||||||||||||
|
Merge done, available through SNAPSHOT's :
release in a few days. |