[CONJ-346] handle innodb_autoinc_lock_mode when rewrite is activated Created: 2016-09-09  Updated: 2021-02-08  Resolved: 2021-02-08

Status: Closed
Project: MariaDB Connector/J
Component/s: batch
Affects Version/s: None
Fix Version/s: N/A

Type: Task Priority: Major
Reporter: Diego Dupin Assignee: Diego Dupin
Resolution: Won't Do Votes: 0
Labels: None


 Description   

According to server variable innodb_autoinc_lock_mode https://mariadb.com/kb/en/mariadb/auto_increment-handling-in-xtradbinnodb/
insert ids lock are different.

This can affect rewrite option. If variable innodb_autoinc_lock_mode is set to values that cannot permit to ensure generatedKeys are accurate, when query is asked with RETURN_GENERATED_KEYS, rewrite must not be used.



 Comments   
Comment by Diego Dupin [ 2021-02-08 ]

won't do, since driver must not try to suppose, but only report sure things

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