Bug #3047 | DELETE FROM table does not reset AUTO-INCREMENT | ||
---|---|---|---|
Submitted: | 2 Mar 2004 16:18 | Modified: | 30 Mar 2004 8:41 |
Reporter: | Todd Keup | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 4.1.1a alpha | OS: | Windows (Windows XP Pro) |
Assigned to: | Michael Widenius | CPU Architecture: | Any |
[2 Mar 2004 16:18]
Todd Keup
[3 Mar 2004 12:19]
Dean Ellis
Verified against 4.0.19/Linux and 4.1.2/Linux. If the behavior will not be reverted, the documentation needs to be updated.
[30 Mar 2004 8:41]
Michael Widenius
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: The manual was incorrect here (I have now fixed this) In MySQL 4.0 we change that 'DELETE FROM table_name' returns the number of rows and doesn't reset auto increment, as this is what most user and some programs expect. If you want to reset the auto-increment value for an MyISAM table, use TRUNCATE TABLE instead.