Bug #1830 | Identity gaps | ||
---|---|---|---|
Submitted: | 13 Nov 2003 12:26 | Modified: | 15 Nov 2003 1:19 |
Reporter: | Jevgenij Obzigailov | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.16 | OS: | Windows (Windows 2000 Server) |
Assigned to: | CPU Architecture: | Any |
[13 Nov 2003 12:26]
Jevgenij Obzigailov
[15 Nov 2003 1:19]
Alexander Keremidarski
Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.mysql.com/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Please provide repeatable test case if possible. There is no way to test and fix chaotically occuring problem. Make sure that no session inserts/updates value higher than current Last_insert_id for table. Suppose you have Last_insert_id = 100 Suppose there is something (application or user) which does: INSERT ... ID=150 DELETE ... WHERE ID=150; Now Last_insert_id is set to 150 Your suggestion to read MAX value can't be implemented as it will break above rule and will lead to reusable values which is undesired for Auto_increment.