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.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.