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
a6a57d06
Commit
a6a57d06
authored
Jul 27, 2005
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk@192.168.21.1:/usr/home/bk/mysql-4.1
into deer.(none):/home/hf/work/mysql-4.1.11329
parents
a18855bf
a776edbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
44 deletions
+44
-44
sql/mysqld.cc
sql/mysqld.cc
+44
-44
No files found.
sql/mysqld.cc
View file @
a6a57d06
...
...
@@ -2569,6 +2569,50 @@ static int init_common_variables(const char *conf_file_name, int argc,
if
(
my_dbopt_init
())
return
1
;
/*
Ensure that lower_case_table_names is set on system where we have case
insensitive names. If this is not done the users MyISAM tables will
get corrupted if accesses with names of different case.
*/
DBUG_PRINT
(
"info"
,
(
"lower_case_table_names: %d"
,
lower_case_table_names
));
if
(
!
lower_case_table_names
&&
(
lower_case_file_system
=
(
test_if_case_insensitive
(
mysql_real_data_home
)
==
1
)))
{
if
(
lower_case_table_names_used
)
{
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"\
You have forced lower_case_table_names to 0 through a command-line \
option, even though your file system '%s' is case insensitive. This means \
that you can corrupt a MyISAM table by accessing it with different cases. \
You should consider changing lower_case_table_names to 1 or 2"
,
mysql_real_data_home
);
}
else
{
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"Setting lower_case_table_names=2 because file system for %s is case insensitive"
,
mysql_real_data_home
);
lower_case_table_names
=
2
;
}
}
else
if
(
lower_case_table_names
==
2
&&
!
(
lower_case_file_system
=
(
test_if_case_insensitive
(
mysql_real_data_home
)
==
1
)))
{
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"lower_case_table_names was set to 2, even though your "
"the file system '%s' is case sensitive. Now setting "
"lower_case_table_names to 0 to avoid future problems."
,
mysql_real_data_home
);
lower_case_table_names
=
0
;
}
/* Reset table_alias_charset, now that lower_case_table_names is set. */
table_alias_charset
=
(
lower_case_table_names
?
files_charset_info
:
&
my_charset_bin
);
return
0
;
}
...
...
@@ -2969,50 +3013,6 @@ int main(int argc, char **argv)
(
void
)
thr_setconcurrency
(
concurrency
);
// 10 by default
/*
Ensure that lower_case_table_names is set on system where we have case
insensitive names. If this is not done the users MyISAM tables will
get corrupted if accesses with names of different case.
*/
DBUG_PRINT
(
"info"
,
(
"lower_case_table_names: %d"
,
lower_case_table_names
));
if
(
!
lower_case_table_names
&&
(
lower_case_file_system
=
(
test_if_case_insensitive
(
mysql_real_data_home
)
==
1
)))
{
if
(
lower_case_table_names_used
)
{
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"\
You have forced lower_case_table_names to 0 through a command-line \
option, even though your file system '%s' is case insensitive. This means \
that you can corrupt a MyISAM table by accessing it with different cases. \
You should consider changing lower_case_table_names to 1 or 2"
,
mysql_real_data_home
);
}
else
{
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"Setting lower_case_table_names=2 because file system for %s is case insensitive"
,
mysql_real_data_home
);
lower_case_table_names
=
2
;
}
}
else
if
(
lower_case_table_names
==
2
&&
!
(
lower_case_file_system
=
(
test_if_case_insensitive
(
mysql_real_data_home
)
==
1
)))
{
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"lower_case_table_names was set to 2, even though your "
"the file system '%s' is case sensitive. Now setting "
"lower_case_table_names to 0 to avoid future problems."
,
mysql_real_data_home
);
lower_case_table_names
=
0
;
}
/* Reset table_alias_charset, now that lower_case_table_names is set. */
table_alias_charset
=
(
lower_case_table_names
?
files_charset_info
:
&
my_charset_bin
);
select_thread
=
pthread_self
();
select_thread_in_use
=
1
;
init_ssl
();
...
...
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