974
988
alter_info->build_method= HA_BUILD_OFFLINE;
976
990
snprintf(tmp_name, sizeof(tmp_name), "%s-%lx_%"PRIx64, TMP_FILE_PREFIX, (unsigned long) current_pid, session->thread_id);
978
992
/* Safety fix for innodb */
979
993
my_casedn_str(files_charset_info, tmp_name);
981
995
/* 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);
1007
error= create_temporary_table(session, table, new_table_temp, create_info, create_proto, alter_info);
986
1013
/* Open the table so we need to copy the data to it. */
987
1014
new_table= open_alter_table(session, table, new_db, tmp_name);