[MDEV-9672] Incorrect error when dropping and adding back a column that is indexed Created: 2016-03-02 Updated: 2016-03-02 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.0.24, 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Will Bryant | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
Dropping and adding a column that is included in an index fails if this is done in a single ALTER statement, even though it works fine if it's first dropped in one ALTER and then added back in a second ALTER statement. Additionally, the error message is inapplicable. Steps to reproduce:
produces
|
| Comments |
| Comment by Elena Stepanova [ 2016-03-02 ] | ||
|
Actually, I'm not getting the error with the provided test case, but doing the same with `a` column instead does the trick:
| ||
| Comment by Elena Stepanova [ 2016-03-02 ] | ||
|
This is an upstream bug https://bugs.mysql.com/bug.php?id=57497, reproducible up to and including 5.7. as of 5.7.10. |