[MDEV-9790] MyISAM allows AUTO_INCREMENT columns with no index Created: 2016-03-25 Updated: 2016-03-25 Resolved: 2016-03-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - MyISAM |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This script:
correctly return an error:
If I now change ENGINE to MyISAM, it creates the table with no errors:
but AUTO_INCREMENT does not actually work:
The problem seems to be introduced by:
|
| Comments |
| Comment by Alexander Barkov [ 2016-03-25 ] | |||||||||||
|
Note, If I change the order of column in the index:
AUTO_INCREMENT starts to work:
| |||||||||||
| Comment by Alexander Barkov [ 2016-03-25 ] | |||||||||||
|
Works as expected. |