[MDEV-7816] ALTER with DROP INDEX and ADD INDEX .. COMMENT='comment2' ignores the new comment Created: 2015-03-23 Updated: 2019-01-16 Resolved: 2015-04-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.0.17, 10.1.3 |
| Fix Version/s: | 10.1.4 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
This script:
returns
Notice, the new comment 'comment2' was ignored. The bug happens when the name and the column list of the new index is exactly the same with the old index. The expected behaviour would be to replace the comment to 'comment2'. The problem does not repeat in MariaDB-5.5. |
| Comments |
| Comment by Daniel Black [ 2015-04-03 ] |
| Comment by Alexander Barkov [ 2015-04-10 ] |
|
A contributed patch fixing this problem https://github.com/MariaDB/server/pull/34 has been merged. |