[CONJ-735] Multi insert should return multi generated keys when using MyBatis Created: 2019-10-08  Updated: 2022-04-11  Resolved: 2019-10-14

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 2.5.0
Fix Version/s: 2.5.1

Type: Bug Priority: Minor
Reporter: Naoya Hatayama Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

MySQL5.6
MyBatis 3.4.6
Java8


Issue Links:
Problem/Incident
is caused by CONJ-706 getGeneratedKey implementation correc... Closed
Relates
relates to CONJ-957 Multi insert should return multi gene... Closed

 Description   

Hi.

There are side effects of fixing CONJ-706.
Multi insert now returns only one generated key.

For example, in MyBatis, the generated key can be mapped to the object at insertion.
Due to this change, generated keys are not mapped when inserting multiple rows.

Thank you.


Generated at Thu Feb 08 03:17:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.