Bug #30767 AUTO_INCREMENT on rollback
| Submitted: | 3 Sep 2007 10:39 | Modified: | 3 Sep 2007 11:02 |
|---|---|---|---|
| Reporter: | Jan Barkhed | Email Updates: | |
| Status: | Not a Bug | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
| Version: | 4.1.22-log | OS: | MacOS |
| Assigned to: | CPU Architecture: | Any |
[3 Sep 2007 10:39]
Jan Barkhed
[3 Sep 2007 11:02]
Hartmut Holzgraefe
This is the defined behavior, we guarantee that each auto_increment id that is handed out is greater than all previous ones. There is no (ant can't be) any guarantee that it is gapless at the same time. So once an auto_increment value is taken by a transaction all following transactions have to get a value larger than that, and if the first transaction is rolled back the value is lost.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.037 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.