[MDEV-13508] ALTER TABLE that renames columns and CHECK constraints Created: 2017-08-12 Updated: 2020-06-13 Resolved: 2018-02-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2.13 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Sergei Golubchik | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | suse | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
If a column is renamed, CHECK constraint isn't changed to use the new column name. But UNIQUE constraint is.
Compare with
|
| Comments |
| Comment by Mike Bayer [ 2017-11-17 ] |
|
note also as in MariaDB [test]> create table t1 (a int, check (a in (0, 1))); MariaDB [test]> alter table t1 change column a b int; |
| Comment by Michael Widenius [ 2018-02-10 ] |
|
Fixed by adding Item::rename_fields_processor and use this to rename fields in |