Bug #30827 | Autoincrement counter does not update on record update | ||
---|---|---|---|
Submitted: | 5 Sep 2007 11:50 | Modified: | 5 Sep 2007 12:34 |
Reporter: | Nikolay Pelov | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
Version: | 5.0.41 | OS: | Any |
Assigned to: | Heikki Tuuri | CPU Architecture: | Any |
Tags: | autoincrement, innodb, UPDATE |
[5 Sep 2007 11:50]
Nikolay Pelov
[5 Sep 2007 12:34]
Heikki Tuuri
Nikolay, an UPDATE does not affect the auto-inc counter in InnoDB. That is how it has always been, and it is documented. The behavior of MyISAM might be less logical. Regards, Heikki
[10 Oct 2007 19:15]
MySQL Verification Team
The documentation is a little vague on this point. Perhaps an explicit statement could be made on http://dev.mysql.com/doc/refman/5.0/en/innodb-auto-increment-handling.html noting that only inserts, and not updates, affect the InnoDB auto increment counter.