summaryrefslogtreecommitdiff
path: root/mysql-test/t/lowercase_table3.test
diff options
context:
space:
mode:
authorMattias Jonsson <mattiasj@mysql.com>2008-07-11 01:14:13 +0200
committerMattias Jonsson <mattiasj@mysql.com>2008-07-11 01:14:13 +0200
commit295fc5834aef999a8f77d0b38037699d7a2b26bc (patch)
treeb2a11e46d9b140588e1b190503053f167524095e /mysql-test/t/lowercase_table3.test
parent12846f416ea649aaeb13d541db7b40cdf7e70e52 (diff)
downloadmariadb-git-295fc5834aef999a8f77d0b38037699d7a2b26bc.tar.gz
Bug#37402: Mysql cant read partitioned table with capital letter in the name
Problem was that ha_partition had HA_FILE_BASED flag set (since it uses a .par file), but after open it uses the first partitions flags, which results in different case handling for create and for open. Solution was to change the underlying partition name so it was consistent. (Only happens when lower_case_table_names = 2, i.e. Mac OS X and storage engines without HA_FILE_BASED, like InnoDB and Memory.) (Recommit after adding rename of check_lowercase_names to get_canonical_filename, and moved it from handler.h to mysql_priv.h) NOTE: if a mixed case name for a partitioned table was created when lower_case_table_name = 2 it should be renamed or dropped before using the updated version (See bug#37402 for more info)
Diffstat (limited to 'mysql-test/t/lowercase_table3.test')
-rw-r--r--mysql-test/t/lowercase_table3.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/mysql-test/t/lowercase_table3.test b/mysql-test/t/lowercase_table3.test
index 51385b4b178..d3c9ec5145e 100644
--- a/mysql-test/t/lowercase_table3.test
+++ b/mysql-test/t/lowercase_table3.test
@@ -6,6 +6,7 @@
--source include/have_innodb.inc
--source include/have_lowercase0.inc
+--source include/have_case_insensitive_file_system.inc
--source include/not_windows.inc
--disable_warnings