Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
35b521c9
Commit
35b521c9
authored
Jan 25, 2005
by
ram@gw.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case (bug #7261: Alter table loses temp table with lower_case_table_names=2).
parent
9c3c566f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
mysql-test/r/lowercase_table2.result
mysql-test/r/lowercase_table2.result
+11
-1
mysql-test/t/lowercase_table2.test
mysql-test/t/lowercase_table2.test
+12
-1
No files found.
mysql-test/r/lowercase_table2.result
View file @
35b521c9
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`;
DROP DATABASE IF EXISTS `test_$1`;
DROP DATABASE IF EXISTS `test_$1`;
CREATE TABLE T1 (a int);
CREATE TABLE T1 (a int);
...
@@ -131,3 +131,13 @@ show tables like 't1%';
...
@@ -131,3 +131,13 @@ show tables like 't1%';
Tables_in_test (t1%)
Tables_in_test (t1%)
t1
t1
drop table 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;
mysql-test/t/lowercase_table2.test
View file @
35b521c9
...
@@ -10,7 +10,7 @@ show variables like "lower_case_table_names";
...
@@ -10,7 +10,7 @@ show variables like "lower_case_table_names";
enable_query_log
;
enable_query_log
;
--
disable_warnings
--
disable_warnings
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`
;
DROP
DATABASE
IF
EXISTS
`test_$1`
;
DROP
DATABASE
IF
EXISTS
`test_$1`
;
--
enable_warnings
--
enable_warnings
...
@@ -100,3 +100,14 @@ show tables like 'T1%';
...
@@ -100,3 +100,14 @@ show tables like 'T1%';
alter
table
t1
add
index
(
A
);
alter
table
t1
add
index
(
A
);
show
tables
like
't1%'
;
show
tables
like
't1%'
;
drop
table
t1
;
drop
table
t1
;
#
# Bug #7261: Alter table loses temp table
#
create
temporary
table
tT
(
a
int
(
11
),
b
varchar
(
8
));
insert
into
tT
values
(
1
,
'abc'
);
select
*
from
tT
;
alter
table
tT
add
index
(
a
);
select
*
from
tT
;
drop
table
tT
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment