[Commits] 221d462cc7f: fix for windows
revision-id: 221d462cc7f9fa4a05e89d1cb381bb0fef79c58f (mariadb-10.3.12-55-g221d462cc7f) parent(s): 6ffbfb92ed33b8b94a0de826d7971cf87a78f64e author: Oleksandr Byelkin committer: Oleksandr Byelkin timestamp: 2019-02-18 09:42:46 +0100 message: fix for windows --- storage/innobase/handler/handler0alter.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/storage/innobase/handler/handler0alter.cc b/storage/innobase/handler/handler0alter.cc index 16bd8111e98..d3907f2d05e 100644 --- a/storage/innobase/handler/handler0alter.cc +++ b/storage/innobase/handler/handler0alter.cc @@ -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;
participants (1)
-
Oleksandr Byelkin