Commit bf8735eb authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix MSVC warning C4819 when system codepage is set to UTF-8.

The warning message says the file contains a character which can not be
represented in current codepage (not exactly accurate)
parent e85089af
......@@ -10313,9 +10313,9 @@ commit_try_norebuild(
dict_fs2utf8(ctx->new_table->name.m_name, db, sizeof db,
table, sizeof table);
tmp_name[0]= (char)0xff;
for (size_t i = 0; error == DB_SUCCESS && i < size; i++) {
snprintf(tmp_name, sizeof tmp_name, "\xff%zu", i);
snprintf(tmp_name+1, sizeof(tmp_name)-1, "%zu", i);
error = dict_stats_rename_index(db, table,
ha_alter_info->
rename_keys[i].
......@@ -10323,7 +10323,7 @@ commit_try_norebuild(
tmp_name, trx);
}
for (size_t i = 0; error == DB_SUCCESS && i < size; i++) {
snprintf(tmp_name, sizeof tmp_name, "\xff%zu", i);
snprintf(tmp_name+1, sizeof(tmp_name)-1, "%zu", i);
error = dict_stats_rename_index(db, table, tmp_name,
ha_alter_info
->rename_keys[i].
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment