[MDEV-23533] Key column 'a' doesn't exist in table on ALTER after creating UNIQUE INDEX Created: 2020-08-21 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.5.5, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Roel Van de Paar | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | not-10.1 | ||
| Description |
|
Leads to:
Same result for InnoDB, MyISAM, Aria. Same result on debug build. Same on these versions/revisions:
|
| Comments |
| Comment by Elena Stepanova [ 2020-08-22 ] |
|
It's not related to BTREE, and unfortunately it's not a bug ("unfortunately" because the error message confuses a lot of people). The behavior is a result of a bug fix, it's documented here (the box "starting from 10.2.8"), and a longer discussion is, for example, in comments to |
| Comment by Roel Van de Paar [ 2020-08-22 ] |
|
Hmm I see. Perhaps we can make the error message clearer? |
| Comment by Sergei Petrunia [ 2022-08-09 ] |
|
This is close to Runtime than optimizer. Re-assigning accordingly. |