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
d094dc35
Commit
d094dc35
authored
Nov 07, 2001
by
heikki@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innobase.cc:
Make database and table names always lower case on Windows
parent
af2e1348
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
sql/ha_innobase.cc
sql/ha_innobase.cc
+14
-2
No files found.
sql/ha_innobase.cc
View file @
d094dc35
...
...
@@ -551,7 +551,7 @@ innobase_init(void)
if
(
!
innobase_data_file_path
)
{
fprin
t
f
(
stderr
,
fprinf
(
stderr
,
"Cannot initialize InnoDB as 'innodb_data_file_path' is not set.
\n
"
"If you do not want to use transactional InnoDB tables, add a line
\n
"
"skip-innodb
\n
"
...
...
@@ -821,7 +821,8 @@ ha_innobase::bas_ext() const
/*********************************************************************
Normalizes a table name string. A normalized name consists of the
database name catenated to '/' and table name. An example:
test/mytable. */
test/mytable. On Windows normalization puts both the database name and the
table name always to lower case. */
static
void
normalize_table_name
(
...
...
@@ -857,6 +858,17 @@ normalize_table_name(
memcpy
(
norm_name
,
db_ptr
,
strlen
(
name
)
+
1
-
(
db_ptr
-
name
));
norm_name
[
name_ptr
-
db_ptr
-
1
]
=
'/'
;
#ifdef __WIN__
/* Put to lower case */
ptr
=
norm_name
;
while
(
*
ptr
!=
'\0'
)
{
*
ptr
=
tolower
(
*
ptr
);
ptr
++
;
}
#endif
}
/*********************************************************************
...
...
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