diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-10-14 23:21:36 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-10-15 00:55:57 +0200 |
commit | 534e4247c39fa9f3c53b7a808bd0cf0691d3bfaa (patch) | |
tree | 9704029a1da1dc6f586aa6165dba68514f8d0a7d | |
parent | 2a471e8e98478ba3618d2556b0059e3bf06767d9 (diff) | |
download | mariadb-git-534e4247c39fa9f3c53b7a808bd0cf0691d3bfaa.tar.gz |
fix lowercase* tests labrador
-rw-r--r-- | mysql-test/r/lowercase_fs_on.result | 1 | ||||
-rw-r--r-- | mysql-test/r/lowercase_table4.result | 3 | ||||
-rw-r--r-- | mysql-test/t/lowercase_fs_on.test | 2 | ||||
-rw-r--r-- | mysql-test/t/lowercase_table4.test | 3 | ||||
-rw-r--r-- | sql/mysqld.cc | 11 |
5 files changed, 8 insertions, 12 deletions
diff --git a/mysql-test/r/lowercase_fs_on.result b/mysql-test/r/lowercase_fs_on.result index a090f46cfbf..b844b3f77dd 100644 --- a/mysql-test/r/lowercase_fs_on.result +++ b/mysql-test/r/lowercase_fs_on.result @@ -1,3 +1,4 @@ # # Bug#20198490 : LOWER_CASE_TABLE_NAMES=0 ON WINDOWS LEADS TO PROBLEMS # +FOUND /\[ERROR\] The server option \'lower_case_table_names\' is configured to use case sensitive table names/ in my_restart.err diff --git a/mysql-test/r/lowercase_table4.result b/mysql-test/r/lowercase_table4.result index 02e2012a186..72c2e9ebf95 100644 --- a/mysql-test/r/lowercase_table4.result +++ b/mysql-test/r/lowercase_table4.result @@ -4,6 +4,9 @@ # CREATE DATABASE XY; USE XY; +set @old_table_open_cache=@@table_open_cache; +set global table_open_cache = 512; +set global table_open_cache = @old_table_open_cache; DROP DATABASE XY; USE TEST; # diff --git a/mysql-test/t/lowercase_fs_on.test b/mysql-test/t/lowercase_fs_on.test index 6da3ef32a0b..1d306826e27 100644 --- a/mysql-test/t/lowercase_fs_on.test +++ b/mysql-test/t/lowercase_fs_on.test @@ -26,7 +26,7 @@ let SEARCH_FILE= $MYSQLTEST_VARDIR/log/my_restart.err; --exec $MYSQLD_CMD --lower_case_table_names=0 > $SEARCH_FILE 2>&1 #Search for the error messege in the server error log. -let SEARCH_PATTERN= \[ERROR\] The server option \'lower_case_table_names\' is configured to use case sensitive table names but the data directory is on a case-insensitive file system which is an unsupported combination\. Please consider either using a case sensitive file system for your data directory or switching to a case-insensitive table name mode\.; +let SEARCH_PATTERN= \[ERROR\] The server option \'lower_case_table_names\' is configured to use case sensitive table names; --source include/search_pattern_in_file.inc #Restart the server diff --git a/mysql-test/t/lowercase_table4.test b/mysql-test/t/lowercase_table4.test index 435ff0dae66..981c8a14564 100644 --- a/mysql-test/t/lowercase_table4.test +++ b/mysql-test/t/lowercase_table4.test @@ -8,6 +8,8 @@ CREATE DATABASE XY; USE XY; +set @old_table_open_cache=@@table_open_cache; +set global table_open_cache = 512; # # Logs are disabled, since the number of creates tables @@ -52,6 +54,7 @@ eval SELECT * FROM XY.T_$tcs LIMIT 1; --enable_query_log --enable_result_log +set global table_open_cache = @old_table_open_cache; DROP DATABASE XY; USE TEST; diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 80b94b8eda0..5d1eca4e1b7 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -4556,23 +4556,12 @@ static int init_common_variables() { if (lower_case_table_names_used) { -#if MYSQL_VERSION_ID < 100100 - if (global_system_variables.log_warnings) - sql_print_warning("You have forced lower_case_table_names to 0 through " - "a command-line option, even though your file system " - "'%s' is case insensitive. This means that you can " - "corrupt your tables if you access them using names " - "with different letter case. You should consider " - "changing lower_case_table_names to 1 or 2", - mysql_real_data_home); -#else sql_print_error("The server option 'lower_case_table_names' is " "configured to use case sensitive table names but the " "data directory resides on a case-insensitive file system. " "Please use a case sensitive file system for your data " "directory or switch to a case-insensitive table name " "mode."); -#endif return 1; } else |