Bug #106671 | Contribution by Tencent: mark insert select with autoinc column unsafe | ||
---|---|---|---|
Submitted: | 8 Mar 2022 12:12 | Modified: | 11 Mar 2022 7:46 |
Reporter: | Yin Peng (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S3 (Non-critical) |
Version: | 5.7.35, 5.7.37 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | Contribution |
[8 Mar 2022 12:12]
Yin Peng
[8 Mar 2022 12:15]
Yin Peng
Update the version of mysql.
[8 Mar 2022 12:21]
Yin Peng
Suggested fix: Mark all insert select statements with autoinc column unsafe when innodb_autoinc_lock_mode=2.
[9 Mar 2022 6:55]
MySQL Verification Team
Hello yin peng, Thank you for the report and test case. regards, Umesh
[11 Mar 2022 7:46]
Yin Peng
Here is a patch for this problem.
[11 Mar 2022 7:47]
Yin Peng
Suggested fix (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: patch.txt (text/plain), 2.23 KiB.
[11 Mar 2022 8:00]
MySQL Verification Team
Thank you for your contribution. regards, Umesh