31
31
bool statement::DropIndex::execute()
36
36
/* Chicken/Egg... we need to search for the table, to know if the table exists, so we can build a full identifier from it */
37
37
message::table::shared_ptr original_table_message;
39
39
identifier::Table identifier(first_table->getSchemaName(), first_table->getTableName());
40
if (plugin::StorageEngine::getTableDefinition(*session, identifier, original_table_message) != EEXIST)
40
if (plugin::StorageEngine::getTableDefinition(*getSession(), identifier, original_table_message) != EEXIST)
42
42
my_error(ER_BAD_TABLE_ERROR, identifier);