Skip to content

Commit 221d462

Browse files
committed
fix for windows
1 parent 6ffbfb9 commit 221d462

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

storage/innobase/handler/handler0alter.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5044,6 +5044,12 @@ prepare_inplace_alter_table_dict(
50445044
mem_heap_alloc(ctx->heap, tablen + partlen + 1));
50455045
memcpy(new_table_name,
50465046
altered_table->s->path.str + prefixlen, tablen);
5047+
#ifdef _WIN32
5048+
{
5049+
char *sep= strchr(new_table_name, FN_LIBCHAR);
5050+
sep[0]= '/';
5051+
}
5052+
#endif
50475053
memcpy(new_table_name + tablen, part ? part : "", partlen + 1);
50485054
ulint n_cols = 0;
50495055
ulint n_v_cols = 0;

0 commit comments

Comments
 (0)