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