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

@@ -3322,5 +3322,28 @@ Note 1176 Key 'x' doesn't exist in table 't1'
unlock tables;
drop table t1;
#
# MDEV-23852 alter table rename column to uppercase doesn't work
#
create table t1 (abc int);
alter table t1 rename column abc to Abc, algorithm=copy;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`Abc` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
alter table t1 rename column abc to ABc, algorithm=inplace;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`ABc` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
alter table t1 rename column abc to ABC;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`ABC` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
drop table t1;
#
# End of 10.5 tests
#