18
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
31
28
bool statement::CreateIndex::execute()
33
30
TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
34
31
TableList *all_tables= session->lex->query_tables;
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 */
40
if (plugin::StorageEngine::getTableDefinition(*session, identifier, original_table_message) != EEXIST)
50
33
CREATE INDEX and DROP INDEX are implemented by calling ALTER
51
34
TABLE with proper arguments.