~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_index.cc

  • Committer: Brian Aker
  • Date: 2011-01-25 07:24:41 UTC
  • mfrom: (2104.3.14 alter-table)
  • Revision ID: brian@tangent.org-20110125072441-gf9f14lkxjhvvku9
MergeĀ inĀ alter/parser

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
namespace statement
32
32
{
33
33
 
34
 
CreateIndex::CreateIndex(Session *in_session, Table_ident *ident) :
35
 
    CreateTable(in_session)
36
 
{
37
 
  (void)ident;
38
 
}
39
 
 
40
 
}
 
34
CreateIndex::CreateIndex(Session *in_session, const drizzled::ha_build_method method_arg) :
 
35
  CreateTable(in_session)
 
36
  {
 
37
    getSession()->getLex()->sql_command= SQLCOM_CREATE_INDEX;
 
38
    alter_info.flags.set(ALTER_ADD_INDEX);
 
39
    alter_info.build_method= method_arg;
 
40
    getSession()->getLex()->col_list.empty();
 
41
  }
41
42
 
42
43
bool statement::CreateIndex::execute()
43
44
{
111
112
  return res;
112
113
}
113
114
 
 
115
} /* namespace statement */
114
116
} /* namespace drizzled */