Bug #39207 | update does not always change auto_increment value | ||
---|---|---|---|
Submitted: | 3 Sep 2008 9:58 | Modified: | 9 Sep 2008 10:46 |
Reporter: | Mattias Jonsson | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.1+ | OS: | Any |
Assigned to: | Sunny Bains | CPU Architecture: | Any |
[3 Sep 2008 9:58]
Mattias Jonsson
[3 Sep 2008 11:38]
MySQL Verification Team
Thank you for the bug report. Verified as described.
[9 Sep 2008 8:54]
Mikhail Izioumtchenko
Assigning to Sunny for consideration. Please note that 1- W1 proved to be wrong as there's a workaround of DELETE/INSERT 2- the internal tag means 'triage not completed yet' 3- if the generally unsound UPDATE on autoinc column results in a permanent inability to insert, this is indeed a problem
[9 Sep 2008 9:03]
Mikhail Izioumtchenko
and I do thank Mattias for the prompt answer to my questions
[9 Sep 2008 10:46]
Heikki Tuuri
InnoDB's behavior has always been that an UPDATE does not change the auto-inc counter value. In 2001, I thought this to be more logical than the MyISAM behavior. If you need to raise the counter value, do an INSERT followed by a DELETE. Marking this as not a bug.