~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/alter_table.cc

  • Committer: Brian Aker
  • Date: 2009-10-06 17:55:59 UTC
  • mfrom: (1160.1.5 foo)
  • Revision ID: brian@gaz-20091006175559-efaijw5igeb9zn6e
SE cleanup interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
  Select_Lex *select_lex= &session->lex->select_lex;
62
62
  bool need_start_waiting= false;
63
63
 
 
64
  if (create_info.used_fields & HA_CREATE_USED_ENGINE)
 
65
  {
 
66
 
 
67
    create_info.db_type= 
 
68
      plugin::StorageEngine::findByName(session, create_table_proto.engine().name());
 
69
 
 
70
    if (create_info.db_type == NULL)
 
71
    {
 
72
      my_error(ER_UNKNOWN_STORAGE_ENGINE, MYF(0), 
 
73
               create_table_proto.name().c_str());
 
74
 
 
75
      return true;
 
76
    }
 
77
  }
 
78
 
64
79
  /* Must be set in the parser */
65
80
  assert(select_lex->db);
66
81