Commit 221d462c authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

fix for windows

parent 6ffbfb92
......@@ -5044,6 +5044,12 @@ prepare_inplace_alter_table_dict(
mem_heap_alloc(ctx->heap, tablen + partlen + 1));
memcpy(new_table_name,
altered_table->s->path.str + prefixlen, tablen);
#ifdef _WIN32
{
char *sep= strchr(new_table_name, FN_LIBCHAR);
sep[0]= '/';
}
#endif
memcpy(new_table_name + tablen, part ? part : "", partlen + 1);
ulint n_cols = 0;
ulint n_v_cols = 0;
......
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