summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2004-05-07 12:48:01 +0300
committerunknown <marko@hundin.mysql.fi>2004-05-07 12:48:01 +0300
commit6b313c6998c7db489d5e6eabb11c6951a908b6fc (patch)
treefe6dae678493a5e02087332ba4ea17a93f2dfc37 /sql/sql_table.cc
parentf1a2e925629b6a2c54d8955af2f5b6c15aca8b8e (diff)
parente3211fbd6a59c3dc6a97066c97ab86bfc67d382f (diff)
downloadmariadb-git-6b313c6998c7db489d5e6eabb11c6951a908b6fc.tar.gz
Merge marko@build.mysql.com:/home/bk/mysql-4.1
into hundin.mysql.fi:/home/marko/j/mysql-4.1 sql/sql_table.cc: Auto merged
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 156c2692488..057c06d6ad3 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -2855,6 +2855,9 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
db_create_options=table->db_create_options & ~(HA_OPTION_PACK_RECORD);
my_snprintf(tmp_name, sizeof(tmp_name), "%s-%lx_%lx", tmp_file_prefix,
current_pid, thd->thread_id);
+ /* Safety fix for innodb */
+ if (lower_case_table_names)
+ my_casedn_str(system_charset_info, tmp_name);
create_info->db_type=new_db_type;
if (!create_info->comment)
create_info->comment=table->comment;