[CONJ-1079] Batch insert not return generated key Created: 2023-05-17 Updated: 2023-06-07 Resolved: 2023-06-07 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 3.1.3, 3.1.4 |
| Fix Version/s: | 3.2.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Rafael R | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | bug, generated, key | ||
| Attachments: |
|
| Description |
|
When I do a batched insertion, if my first statement gives an error (like constraint violation), the rest of my insert result will not get the proper generated ID. Debugging the connector, the OkPacket contains the ID, but because of that validation (see in attachment) none ID is returned. My DataSource configuration have the following parameters: |
| Comments |
| Comment by Diego Dupin [ 2023-06-07 ] | |||||||||||||||
|
Thanks for reporting the error, correction will be release in 3.2.0. (correction is actually available using snapshot version:
) |