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
9eadf236
Commit
9eadf236
authored
Apr 27, 2005
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge hundin.mysql.fi:/home/heikki/mysql-4.1
into hundin.mysql.fi:/home/heikki/mysql-5.0
parents
d694d5f1
bea92e16
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
1 deletion
+27
-1
innobase/dict/dict0dict.c
innobase/dict/dict0dict.c
+11
-1
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+9
-0
innobase/include/dict0dict.h
innobase/include/dict0dict.h
+7
-0
No files found.
innobase/dict/dict0dict.c
View file @
9eadf236
...
...
@@ -199,7 +199,17 @@ FILE* dict_foreign_err_file = NULL;
mutex_t
dict_foreign_err_mutex
;
/* mutex protecting the foreign
and unique error buffers */
/**********************************************************************
Makes all characters in a NUL-terminated UTF-8 string lower case. */
void
dict_casedn_str
(
/*============*/
char
*
a
)
/* in/out: string to put in lower case */
{
innobase_casedn_str
(
a
);
}
/************************************************************************
Checks if the database name in two table names is the same. */
...
...
innobase/fil/fil0fil.c
View file @
9eadf236
...
...
@@ -25,6 +25,7 @@ Created 10/25/1995 Heikki Tuuri
#include "srv0start.h"
#include "mtr0mtr.h"
#include "mtr0log.h"
#include "dict0dict.h"
/*
...
...
@@ -2743,7 +2744,15 @@ fil_load_single_table_tablespace(
sprintf
(
filepath
,
"%s/%s/%s"
,
fil_path_to_mysql_datadir
,
dbname
,
filename
);
srv_normalize_path_for_win
(
filepath
);
#ifdef __WIN__
/* If lower_case_table_names is 0 or 2, then MySQL allows database
directory names with upper case letters. On Windows, all table and
database names in InnoDB are internally always in lower case. Put the
file path to lower case, so that we are consistent with InnoDB's
internal data dictionary. */
dict_casedn_str
(
filepath
);
#endif
file
=
os_file_create_simple_no_error_handling
(
filepath
,
OS_FILE_OPEN
,
OS_FILE_READ_ONLY
,
&
success
);
if
(
!
success
)
{
...
...
innobase/include/dict0dict.h
View file @
9eadf236
...
...
@@ -26,6 +26,13 @@ Created 1/8/1996 Heikki Tuuri
#include "ut0byte.h"
#include "trx0types.h"
/**********************************************************************
Makes all characters in a NUL-terminated UTF-8 string lower case. */
void
dict_casedn_str
(
/*============*/
char
*
a
);
/* in/out: string to put in lower case */
/************************************************************************
Get the database name length in a table name. */
...
...
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