Bug #44450 | WB does not allow creation of multi-column key without first being auto_inc | ||
---|---|---|---|
Submitted: | 24 Apr 2009 1:56 | Modified: | 24 May 2013 19:15 |
Reporter: | Matthew Montgomery | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S2 (Serious) |
Version: | 5.0.30 Rev. 3384 | OS: | Any |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[24 Apr 2009 1:56]
Matthew Montgomery
[3 Aug 2009 2:51]
Alfredo Kojima
This has several issues: - There was a bug that prevented reordering Index columns in the table editor. This has been fixed. - WB does not specifically handle any such restrictions in the table editor. However, validations should be added to detect violations to the restriction that only the 1st index in the PK can be auto_increment in InnoDB.
[5 Nov 2009 16:36]
MySQL Verification Team
See bug: http://bugs.mysql.com/bug.php?id=48468.
[2 Dec 2009 18:35]
MySQL Verification Team
Confirmed Fixed in 5.2 I was able to create both types of tables described in the opening comment. CREATE TABLE `t1` ( `f1` int(11) NOT NULL DEFAULT '0', `f2` tinyint(4) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`f1`,`f2`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 CREATE TABLE `t1` ( `f1` int(11) NOT NULL DEFAULT '0', `f2` tinyint(4) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`f1`,`f2`), KEY `f2_idx` (`f2`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1
[24 May 2013 19:15]
Alfredo Kojima
Closing old bug as confirmed by reporter