156
157
identifier::Table old_identifier(ren_table->getSchemaName(), old_alias, message::Table::STANDARD);
159
if (plugin::StorageEngine::getTableDefinition(*getSession(), old_identifier, table_proto) != EEXIST)
160
161
my_error(ER_NO_SUCH_TABLE, MYF(0), ren_table->getSchemaName(), old_alias);
166
167
identifier::Table new_identifier(new_db, new_alias, message::Table::STANDARD);
169
170
my_error(ER_TABLE_EXISTS_ERROR, MYF(0), new_alias);
170
171
return 1; // This can't be skipped
173
rc= rename_table(*session, engine, old_identifier, new_identifier);
174
rc= rename_table(*getSession(), engine, old_identifier, new_identifier);