1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-23852 alter table rename column to uppercase doesn't work

Case-sensitive compare to detect column name case change in inplace
alter rename.
This commit is contained in:
Aleksey Midenkov
2020-10-20 11:16:40 +03:00
parent 5ca14dafbe
commit d1667fb837
4 changed files with 52 additions and 18 deletions

View File

@@ -2529,6 +2529,18 @@ alter table t1 rename key if exists x to xx;
unlock tables;
drop table t1;
--echo #
--echo # MDEV-23852 alter table rename column to uppercase doesn't work
--echo #
create table t1 (abc int);
alter table t1 rename column abc to Abc, algorithm=copy;
show create table t1;
alter table t1 rename column abc to ABc, algorithm=inplace;
show create table t1;
alter table t1 rename column abc to ABC;
show create table t1;
drop table t1;
--echo #
--echo # End of 10.5 tests
--echo #