Bug #72902 | auto increment value for table not affected by update statement | ||
---|---|---|---|
Submitted: | 6 Jun 2014 17:46 | Modified: | 6 Jun 2014 20:58 |
Reporter: | Trey Raymond | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.5.34 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[6 Jun 2014 17:46]
Trey Raymond
[6 Jun 2014 20:58]
MySQL Verification Team
Thank you for the bug report. Not repeatable with latest release 5.5.38. Please upgrade. c:\mysql-5.5.38-winx64>bin\mysql -uroot test Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.5.38 MySQL Community Server (GPL) Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> CREATE TABLE `test` (`id` int(10) unsigned NOT NULL, `a` varchar(10) NOT NULL,PRIMARY KEY (`id`),UNIQUE KEY `a` (`a`)) -> ENGINE=InnoDB DEFAULT CHARSET=utf8; Query OK, 0 rows affected (0.11 sec) mysql> insert into test (a) values ('hello'); Query OK, 1 row affected, 1 warning (0.03 sec) mysql> alter table test modify id int(10) unsigned NOT NULL auto_increment; Query OK, 1 row affected (0.25 sec) Records: 1 Duplicates: 0 Warnings: 0 mysql> select * from test; +----+-------+ | id | a | +----+-------+ | 1 | hello | +----+-------+ 1 row in set (0.00 sec)