974
973
alter_info->build_method= HA_BUILD_OFFLINE;
976
975
snprintf(tmp_name, sizeof(tmp_name), "%s-%lx_%"PRIx64, TMP_FILE_PREFIX, (unsigned long) current_pid, session->thread_id);
978
977
/* Safety fix for innodb */
979
978
my_casedn_str(files_charset_info, tmp_name);
981
980
/* Create a temporary table with the new format */
982
error= create_temporary_table(session, table, new_db, tmp_name, create_info, create_proto, alter_info);
993
error= create_temporary_table(session, table, new_table_temp, create_info, create_proto, alter_info);
986
999
/* Open the table so we need to copy the data to it. */
987
1000
new_table= open_alter_table(session, table, new_db, tmp_name);