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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2e279962
Commit
2e279962
authored
Apr 27, 2021
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: lowercase_table.test
parent
1ca56de8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
37 deletions
+50
-37
mysql-test/main/lowercase_table.result
mysql-test/main/lowercase_table.result
+24
-7
mysql-test/main/lowercase_table.test
mysql-test/main/lowercase_table.test
+26
-30
No files found.
mysql-test/main/lowercase_table.result
View file @
2e279962
drop table if exists t1,t2,t3,t4;
drop table if exists t0,t5,t6,t7,t8,t9;
drop database if exists mysqltest;
drop view if exists v0, v1, v2, v3, v4;
create table T1 (id int primary key, Word varchar(40) not null, Index(Word));
create table t4 (id int primary key, Word varchar(40) not null);
INSERT INTO T1 VALUES (1, 'a'), (2, 'b'), (3, 'c');
...
...
@@ -79,13 +75,21 @@ ERROR 42000: Not unique table/alias: 'C'
select C.a, c.a from t1 c, t2 C;
ERROR 42000: Not unique table/alias: 'C'
drop table t1, t2;
#
# Bug #9761: CREATE TABLE ... LIKE ... not handled correctly when lower_case_table_names is set
#
create table t1 (a int);
create table t2 like T1;
drop table t1, t2;
show tables;
Tables_in_test
#
# End of 4.1 tests
#
#
# Bug#20404: SHOW CREATE TABLE fails with Turkish I
#
set names utf8;
drop table if exists İ,İİ;
create table İ (s1 int);
show create table İ;
Table Create Table
...
...
@@ -107,7 +111,12 @@ Tables_in_test
ii
drop table İİ;
set names latin1;
End of 5.0 tests
#
# End of 5.0 tests
#
#
# Bug#21317: SHOW CREATE DATABASE does not obey to lower_case_table_names
#
create database mysql_TEST character set latin2;
create table mysql_TEST.T1 (a int);
show create database mysql_TEST;
...
...
@@ -126,8 +135,16 @@ show databases like "mysql_TE%";
Database (mysql_TE%)
mysql_test
drop database mysql_TEST;
End of 10.0 tests
#
# End of 10.0 tests
#
#
# MDEV-17148 DROP DATABASE throw "Directory not empty" after changed lower_case_table_names.
#
create database db1;
create table t1 (a int);
drop database db1;
drop table t1;
#
# End of 10.2 tests
#
mysql-test/main/lowercase_table.test
View file @
2e279962
...
...
@@ -2,14 +2,6 @@
# Test of --lower-case-table-names
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
,
t3
,
t4
;
# Clear up from other tests (to ensure that SHOW TABLES below is right)
drop
table
if
exists
t0
,
t5
,
t6
,
t7
,
t8
,
t9
;
drop
database
if
exists
mysqltest
;
drop
view
if
exists
v0
,
v1
,
v2
,
v3
,
v4
;
--
enable_warnings
create
table
T1
(
id
int
primary
key
,
Word
varchar
(
40
)
not
null
,
Index
(
Word
));
create
table
t4
(
id
int
primary
key
,
Word
varchar
(
40
)
not
null
);
INSERT
INTO
T1
VALUES
(
1
,
'a'
),
(
2
,
'b'
),
(
3
,
'c'
);
...
...
@@ -68,32 +60,29 @@ drop table t1,t2;
#
create
table
t1
(
a
int
);
create
table
t2
(
a
int
);
--
error
1066
--
error
ER_NONUNIQ_TABLE
select
*
from
t1
c
,
t2
C
;
--
error
1066
--
error
ER_NONUNIQ_TABLE
select
C
.
a
,
c
.
a
from
t1
c
,
t2
C
;
drop
table
t1
,
t2
;
#
# Bug #9761: CREATE TABLE ... LIKE ... not handled correctly when
# lower_case_table_names is set
--
echo
#
--
echo
# Bug #9761: CREATE TABLE ... LIKE ... not handled correctly when lower_case_table_names is set
--
echo
#
create
table
t1
(
a
int
);
create
table
t2
like
T1
;
drop
table
t1
,
t2
;
show
tables
;
--
echo
#
--
echo
# End of 4.1 tests
--
echo
#
# End of 4.1 tests
#
# Bug#20404: SHOW CREATE TABLE fails with Turkish I
#
--
echo
#
--
echo
# Bug#20404: SHOW CREATE TABLE fails with Turkish I
--
echo
#
set
names
utf8
;
--
disable_warnings
drop
table
if
exists
İ
,
İİ
;
--
enable_warnings
create
table
İ
(
s1
int
);
show
create
table
İ
;
show
tables
;
...
...
@@ -104,11 +93,13 @@ show tables;
drop
table
İİ
;
set
names
latin1
;
--
echo
End
of
5.0
tests
--
echo
#
--
echo
# End of 5.0 tests
--
echo
#
#
# Bug#21317: SHOW CREATE DATABASE does not obey to lower_case_table_names
#
--
echo
#
--
echo
# Bug#21317: SHOW CREATE DATABASE does not obey to lower_case_table_names
--
echo
#
create
database
mysql_TEST
character
set
latin2
;
create
table
mysql_TEST
.
T1
(
a
int
);
show
create
database
mysql_TEST
;
...
...
@@ -117,11 +108,13 @@ show databases like "mysql%";
show
databases
like
"mysql_TE%"
;
drop
database
mysql_TEST
;
--
echo
End
of
10.0
tests
--
echo
#
--
echo
# End of 10.0 tests
--
echo
#
#
# MDEV-17148 DROP DATABASE throw "Directory not empty" after changed lower_case_table_names.
#
--
echo
#
--
echo
# MDEV-17148 DROP DATABASE throw "Directory not empty" after changed lower_case_table_names.
--
echo
#
let
$datadir
=
`select @@datadir`
;
create
database
db1
;
...
...
@@ -130,3 +123,6 @@ copy_file $datadir/test/t1.frm $datadir/db1/T1.frm;
drop
database
db1
;
drop
table
t1
;
--
echo
#
--
echo
# End of 10.2 tests
--
echo
#
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