mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Bug #27653: Temp table can't be created if lower_case_table_names=1 and
tmpdir has uppercase Fix: don't convert mysql_tmpdir to lower case when building the path to a temporary table mysql-test/include/have_lowercase1.inc: BitKeeper file /benchmarks/ext3/TOSAVE/tsmith/bk/maint/b27653/50/mysql-test/include/have_lowercase1.inc mysql-test/r/lowercase1.require: BitKeeper file /benchmarks/ext3/TOSAVE/tsmith/bk/maint/b27653/50/mysql-test/r/lowercase1.require mysql-test/r/lowercase_mixed_tmpdir.result: BitKeeper file /benchmarks/ext3/TOSAVE/tsmith/bk/maint/b27653/50/mysql-test/r/lowercase_mixed_tmpdir.result mysql-test/t/lowercase_mixed_tmpdir-master.opt: BitKeeper file /benchmarks/ext3/TOSAVE/tsmith/bk/maint/b27653/50/mysql-test/t/lowercase_mixed_tmpdir-master.opt mysql-test/t/lowercase_mixed_tmpdir-master.sh: BitKeeper file /benchmarks/ext3/TOSAVE/tsmith/bk/maint/b27653/50/mysql-test/t/lowercase_mixed_tmpdir-master.sh mysql-test/t/lowercase_mixed_tmpdir.test: BitKeeper file /benchmarks/ext3/TOSAVE/tsmith/bk/maint/b27653/50/mysql-test/t/lowercase_mixed_tmpdir.test sql/sql_table.cc: When building the path for a temporary table file, do not convert mysql_tmpdir to lower case; lower_case_table_names should not apply to mysql_tmpdir.
This commit is contained in:
parent
b183fbbb18
commit
36dea21b6c
7 changed files with 48 additions and 10 deletions
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
|
||||
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue