Commit 56a8acd2 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

fix problem of last /

parent 1b6b99be
......@@ -5034,7 +5034,9 @@ prepare_inplace_alter_table_dict(
goto err_exit;
}
size_t prefixlen= strlen(mysql_data_home) + 1;
size_t prefixlen= strlen(mysql_data_home);
if (mysql_data_home[prefixlen-1] != FN_LIBCHAR)
prefixlen++;
size_t tablen = altered_table->s->path.length - prefixlen;
const char* part = ctx->old_table->name.part();
size_t partlen = part ? strlen(part) : 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