| Bug #21641 | nonpreserving of InnoDB auto_increment values can lead to unintended inheritance | ||
|---|---|---|---|
| Submitted: | 15 Aug 2006 1:57 | Modified: | 28 Aug 2006 13:08 |
| Reporter: | Stephen Dewey | ||
| Status: | Verified | ||
| Category: | Server: InnoDB | Severity: | S4 (Feature request) |
| Version: | 4.1.20 | OS: | Linux (Linux (Red Hat)) |
| Assigned to: | Heikki Tuuri | Target Version: | |
| Tags: | innodb, auto_increment | ||
| Triage: | Triaged: D5 (Feature request) | ||
[15 Aug 2006 1:57]
Stephen Dewey
[28 Aug 2006 13:08]
Valeriy Kravchuk
Thank you for a reasonable feature request.
[8 May 2007 3:20]
Daevid Vincent
This bug is critical and is causing us all kinds of grief with database integrity. Please
escalate it.
mysqladmin create INNODB_IS_BROKEN
locutus ~ # mysql INNODB_IS_BROKEN
mysql> CREATE TABLE `foo` (
-> `id` int(10) unsigned NOT NULL auto_increment,
-> `name` varchar(20),
-> PRIMARY KEY (`id`)
-> ) ENGINE=INNODB;
Query OK, 0 rows affected (0.01 sec)
mysql> INSERT INTO foo values (null, 'a');
mysql> INSERT INTO foo values (null, 'b');
mysql> INSERT INTO foo values (null, 'c');
mysql> SELECT * FROM foo;
+----+------+
| id | name |
+----+------+
| 1 | a |
| 2 | b |
| 3 | c |
+----+------+
3 rows in set (0.00 sec)
mysql> DELETE FROM foo;
Query OK, 3 rows affected (0.00 sec)
mysql> QUIT;
locutus ~ # /etc/init.d/mysql restart
* Stopping mysql ...
* Starting mysql (/etc/mysql/my.cnf)
locutus ~ # mysql INNODB_IS_BROKEN
mysql> INSERT INTO foo values (null, 'd');
Query OK, 1 row affected (0.01 sec)
mysql> SELECT * FROM foo;
+----+------+
| id | name |
+----+------+
| 1 | d |
+----+------+
1 row in set (0.00 sec)
[4 Jun 2007 22:06]
Dimitriy Alekseyev
What's the status of this feature request?
[19 Dec 2007 22:59]
Mike Schumacher
I agree that this is a critical problem that needs to be addressed. We are having all kinds of issues related to it. What is the status of this bug?
[13 Feb 2008 23:29]
Dave Latham
The current functionality is definitely not intuitive. A persistent auto-increment would be much appreciated!
[20 Oct 2008 23:40]
Mattias Jonsson
Closed bug#34077 as a duplicate of this.
