summaryrefslogtreecommitdiff
path: root/mysql-test/t/lowercase_table.test
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-04-28 15:30:42 -0700
committerunknown <jimw@mysql.com>2005-04-28 15:30:42 -0700
commitef3e9e1cffd0ee79e7ad433ad83353413a59accd (patch)
tree0d3f86c29624a2336877bab198674022cff235ef /mysql-test/t/lowercase_table.test
parent1faa742b86727245ad07e150be19670033adeee7 (diff)
downloadmariadb-git-ef3e9e1cffd0ee79e7ad433ad83353413a59accd.tar.gz
Fix 'CREATE TABLE ... LIKE ...' when lower_case_table_names
is set on case-sensitive file systems and the source table was specified in something other than lowercase. (Bug #9761) mysql-test/r/lowercase_table.result: Add results mysql-test/t/lowercase_table.test: Regression test for Bug #9761 sql/sql_table.cc: When lower_case_table_names is set, make sure to look for the source table using a lowercase filename.
Diffstat (limited to 'mysql-test/t/lowercase_table.test')
-rw-r--r--mysql-test/t/lowercase_table.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/lowercase_table.test b/mysql-test/t/lowercase_table.test
index a9c0c976afc..ee8dc403981 100644
--- a/mysql-test/t/lowercase_table.test
+++ b/mysql-test/t/lowercase_table.test
@@ -73,4 +73,12 @@ select * from t1 c, t2 C;
select C.a, c.a from t1 c, t2 C;
drop table t1, t2;
+#
+# Bug #9761: CREATE TABLE ... LIKE ... not handled correctly when
+# lower_case_table_names is set
+
+create table t1 (a int);
+create table t2 like T1;
+drop table t1, t2;
+
show tables;