156
157
length= build_table_filename(path, sizeof(path),
157
158
ren_table->db, old_alias, false);
160
if (plugin::StorageEngine::getTableDefinition(*session, path, ren_table->db, old_alias, false, &table_proto) != EEXIST)
161
162
my_error(ER_NO_SUCH_TABLE, MYF(0), ren_table->db, old_alias);
167
168
length= build_table_filename(path, sizeof(path),
168
169
new_db, new_alias, false);
171
if (plugin::StorageEngine::getTableDefinition(*session, path, new_db, new_alias, false) != ENOENT)
172
173
my_error(ER_TABLE_EXISTS_ERROR, MYF(0), new_alias);
173
174
return 1; // This can't be skipped