Commit 44af4144 authored by tsmith@quadxeon.mysql.com's avatar tsmith@quadxeon.mysql.com
Browse files

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
parent 5d7a264c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
--require r/lowercase1.require
--disable_query_log
show variables like 'lower_case_table_names';
--enable_query_log
+2 −0
Original line number Diff line number Diff line
Variable_name	Value
lower_case_table_names	1
+6 −0
Original line number Diff line number Diff line
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 −0
Original line number Diff line number Diff line
--lower-case-table-names=1
--tmpdir=$MYSQLTEST_VARDIR/tmp/MixedCase
+6 −0
Original line number Diff line number Diff line
# 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"/*
Loading