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
bbe3e4bd
Commit
bbe3e4bd
authored
Jul 21, 2010
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
eb366b8c
e24abd90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
mysql-test/r/lowercase_table2.result
mysql-test/r/lowercase_table2.result
+2
-1
sql/sql_show.cc
sql/sql_show.cc
+13
-2
No files found.
mysql-test/r/lowercase_table2.result
View file @
bbe3e4bd
...
@@ -56,6 +56,7 @@ CREATE DATABASE `TEST_$1`;
...
@@ -56,6 +56,7 @@ CREATE DATABASE `TEST_$1`;
SHOW DATABASES LIKE "TEST%";
SHOW DATABASES LIKE "TEST%";
Database (TEST%)
Database (TEST%)
TEST_$1
TEST_$1
test
DROP DATABASE `test_$1`;
DROP DATABASE `test_$1`;
CREATE TABLE T1 (a int) engine=innodb;
CREATE TABLE T1 (a int) engine=innodb;
INSERT INTO T1 VALUES (1);
INSERT INTO T1 VALUES (1);
...
@@ -171,7 +172,7 @@ create table myUC (i int);
...
@@ -171,7 +172,7 @@ create table myUC (i int);
select TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES
select TABLE_SCHEMA,TABLE_NAME FROM information_schema.TABLES
where TABLE_SCHEMA ='mysqltest_LC2';
where TABLE_SCHEMA ='mysqltest_LC2';
TABLE_SCHEMA TABLE_NAME
TABLE_SCHEMA TABLE_NAME
mysqltest_
LC
2 myUC
mysqltest_
lc
2 myUC
use test;
use test;
drop database mysqltest_LC2;
drop database mysqltest_LC2;
# End of 5.1 tests
# End of 5.1 tests
...
...
sql/sql_show.cc
View file @
bbe3e4bd
...
@@ -460,8 +460,19 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db,
...
@@ -460,8 +460,19 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db,
continue
;
continue
;
file_name_len
=
filename_to_tablename
(
file
->
name
,
uname
,
sizeof
(
uname
));
file_name_len
=
filename_to_tablename
(
file
->
name
,
uname
,
sizeof
(
uname
));
if
(
wild
&&
wild_compare
(
uname
,
wild
,
0
))
if
(
wild
)
continue
;
{
if
(
lower_case_table_names
)
{
if
(
my_wildcmp
(
files_charset_info
,
uname
,
uname
+
file_name_len
,
wild
,
wild
+
wild_length
,
wild_prefix
,
wild_one
,
wild_many
))
continue
;
}
else
if
(
wild_compare
(
uname
,
wild
,
0
))
continue
;
}
if
(
!
(
file_name
=
if
(
!
(
file_name
=
thd
->
make_lex_string
(
file_name
,
uname
,
file_name_len
,
TRUE
)))
thd
->
make_lex_string
(
file_name
,
uname
,
file_name_len
,
TRUE
)))
{
{
...
...
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