~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/create_index.cc

  • Committer: Monty Taylor
  • Date: 2011-01-11 06:07:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2074.
  • Revision ID: mordred@inaugust.com-20110111060755-jf6l99lf1i51w8dm
Removed some guts from set_var.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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;
38
38
  {
39
 
    identifier::Table identifier(first_table->getSchemaName(), first_table->getTableName());
 
39
    TableIdentifier identifier(first_table->getSchemaName(), first_table->getTableName());
40
40
    if (plugin::StorageEngine::getTableDefinition(*session, identifier, original_table_message) != EEXIST)
41
41
    {
42
42
      std::string path;
64
64
  bool res;
65
65
  if (original_table_message->type() == message::Table::STANDARD )
66
66
  {
67
 
    identifier::Table identifier(first_table->getSchemaName(), first_table->getTableName());
 
67
    TableIdentifier identifier(first_table->getSchemaName(), first_table->getTableName());
68
68
    create_info().default_table_charset= plugin::StorageEngine::getSchemaCollation(identifier);
69
69
 
70
70
    res= alter_table(session, 
79
79
  }
80
80
  else
81
81
  {
82
 
    identifier::Table catch22(first_table->getSchemaName(), first_table->getTableName());
 
82
    TableIdentifier catch22(first_table->getSchemaName(), first_table->getTableName());
83
83
    Table *table= session->find_temporary_table(catch22);
84
84
    assert(table);
85
85
    {
86
 
      identifier::Table identifier(first_table->getSchemaName(), first_table->getTableName(), table->getMutableShare()->getPath());
 
86
      TableIdentifier identifier(first_table->getSchemaName(), first_table->getTableName(), table->getMutableShare()->getPath());
87
87
      create_info().default_table_charset= plugin::StorageEngine::getSchemaCollation(identifier);
88
88
 
89
89
      res= alter_table(session,