mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/50
into quadxeon.mysql.com:/benchmarks/ext3/TOSAVE/tsmith/bk/maint/51 mysql-test/lib/mtr_report.pl: Auto merged sql/sql_table.cc: Manual merge
This commit is contained in:
4
mysql-test/include/have_lowercase1.inc
Normal file
4
mysql-test/include/have_lowercase1.inc
Normal file
@ -0,0 +1,4 @@
|
||||
--require r/lowercase1.require
|
||||
--disable_query_log
|
||||
show variables like 'lower_case_table_names';
|
||||
--enable_query_log
|
@ -238,7 +238,7 @@ sub mtr_report_stats ($) {
|
||||
}
|
||||
if (!$::opt_extern)
|
||||
{
|
||||
print "The servers where restarted $tot_restarts times\n";
|
||||
print "The servers were restarted $tot_restarts times\n";
|
||||
}
|
||||
|
||||
if ( $::opt_timer )
|
||||
@ -358,7 +358,7 @@ sub mtr_report_stats ($) {
|
||||
|
||||
if ( $tot_failed != 0 || $found_problems)
|
||||
{
|
||||
mtr_error("there where failing test cases");
|
||||
mtr_error("there were failing test cases");
|
||||
}
|
||||
}
|
||||
|
||||
|
2
mysql-test/r/lowercase1.require
Normal file
2
mysql-test/r/lowercase1.require
Normal file
@ -0,0 +1,2 @@
|
||||
Variable_name Value
|
||||
lower_case_table_names 1
|
6
mysql-test/r/lowercase_mixed_tmpdir.result
Normal file
6
mysql-test/r/lowercase_mixed_tmpdir.result
Normal file
@ -0,0 +1,6 @@
|
||||
drop table if exists t1;
|
||||
create table t1 (id int) engine=myisam;
|
||||
insert into t1 values (1);
|
||||
create temporary table t2 select * from t1;
|
||||
drop temporary table t2;
|
||||
drop table t1;
|
2
mysql-test/t/lowercase_mixed_tmpdir-master.opt
Normal file
2
mysql-test/t/lowercase_mixed_tmpdir-master.opt
Normal file
@ -0,0 +1,2 @@
|
||||
--lower-case-table-names=1
|
||||
--tmpdir=$MYSQLTEST_VARDIR/tmp/MixedCase
|
6
mysql-test/t/lowercase_mixed_tmpdir-master.sh
Normal file
6
mysql-test/t/lowercase_mixed_tmpdir-master.sh
Normal file
@ -0,0 +1,6 @@
|
||||
# This test requires a non-lowercase tmpdir directory on a case-sensitive
|
||||
# filesystem.
|
||||
|
||||
d="$MYSQLTEST_VARDIR/tmp/MixedCase"
|
||||
test -d "$d" || mkdir "$d"
|
||||
rm -f "$d"/*
|
12
mysql-test/t/lowercase_mixed_tmpdir.test
Normal file
12
mysql-test/t/lowercase_mixed_tmpdir.test
Normal file
@ -0,0 +1,12 @@
|
||||
--source include/have_case_sensitive_file_system.inc
|
||||
--source include/have_lowercase1.inc
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
create table t1 (id int) engine=myisam;
|
||||
insert into t1 values (1);
|
||||
create temporary table t2 select * from t1;
|
||||
drop temporary table t2;
|
||||
drop table t1;
|
@ -209,17 +209,20 @@ uint build_table_filename(char *buff, size_t bufflen, const char *db,
|
||||
|
||||
uint build_tmptable_filename(THD* thd, char *buff, size_t bufflen)
|
||||
{
|
||||
uint length;
|
||||
char tmp_table_name[tmp_file_prefix_length+22+22+22+3];
|
||||
DBUG_ENTER("build_tmptable_filename");
|
||||
|
||||
my_snprintf(tmp_table_name, sizeof(tmp_table_name),
|
||||
"%s%lx_%lx_%x",
|
||||
char *p= strnmov(buff, mysql_tmpdir, bufflen);
|
||||
my_snprintf(p, bufflen - (p - buff), "/%s%lx_%lx_%x%s",
|
||||
tmp_file_prefix, current_pid,
|
||||
thd->thread_id, thd->tmp_table++);
|
||||
thd->thread_id, thd->tmp_table++, reg_ext);
|
||||
|
||||
strxnmov(buff, bufflen, mysql_tmpdir, "/", tmp_table_name, reg_ext, NullS);
|
||||
length= unpack_filename(buff, buff);
|
||||
if (lower_case_table_names)
|
||||
{
|
||||
/* Convert all except tmpdir to lower case */
|
||||
my_casedn_str(files_charset_info, p);
|
||||
}
|
||||
|
||||
uint length= unpack_filename(buff, buff);
|
||||
DBUG_PRINT("exit", ("buff: '%s'", buff));
|
||||
DBUG_RETURN(length);
|
||||
}
|
||||
@ -3440,8 +3443,6 @@ bool mysql_create_table_internal(THD *thd,
|
||||
if (create_info->options & HA_LEX_CREATE_TMP_TABLE)
|
||||
{
|
||||
path_length= build_tmptable_filename(thd, path, sizeof(path));
|
||||
if (lower_case_table_names)
|
||||
my_casedn_str(files_charset_info, path);
|
||||
create_info->table_options|=HA_CREATE_DELAY_KEY_WRITE;
|
||||
}
|
||||
else
|
||||
@ -4751,8 +4752,6 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
|
||||
if (find_temporary_table(thd, db, table_name))
|
||||
goto table_exists;
|
||||
dst_path_length= build_tmptable_filename(thd, dst_path, sizeof(dst_path));
|
||||
if (lower_case_table_names)
|
||||
my_casedn_str(files_charset_info, dst_path);
|
||||
create_info->table_options|= HA_CREATE_DELAY_KEY_WRITE;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user