mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Test case (bug #7261: Alter table loses temp table with lower_case_table_names=2).
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
DROP TABLE IF EXISTS t1,t2,T1,T2,t3,T3;
|
||||
DROP TABLE IF EXISTS t1,t2,T1,T2,t3,T3,tT;
|
||||
DROP DATABASE IF EXISTS `TEST_$1`;
|
||||
DROP DATABASE IF EXISTS `test_$1`;
|
||||
CREATE TABLE T1 (a int);
|
||||
@ -131,3 +131,13 @@ show tables like 't1%';
|
||||
Tables_in_test (t1%)
|
||||
t1
|
||||
drop table t1;
|
||||
create temporary table tT(a int(11), b varchar(8));
|
||||
insert into tT values (1, 'abc');
|
||||
select * from tT;
|
||||
a b
|
||||
1 abc
|
||||
alter table tT add index (a);
|
||||
select * from tT;
|
||||
a b
|
||||
1 abc
|
||||
drop table tT;
|
||||
|
Reference in New Issue
Block a user