~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/drop_index.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 10:44:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310104418-9nye3afuge7hnf5g
Statement::session()

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
  message::table::shared_ptr original_table_message;
38
38
  {
39
39
    identifier::Table identifier(first_table->getSchemaName(), first_table->getTableName());
40
 
    if (not (original_table_message= plugin::StorageEngine::getTableMessage(*getSession(), identifier)))
 
40
    if (not (original_table_message= plugin::StorageEngine::getTableMessage(session(), identifier)))
41
41
    {
42
42
      my_error(ER_BAD_TABLE_ERROR, identifier);
43
43
      return true;
71
71
 
72
72
    create_info.default_table_charset= plugin::StorageEngine::getSchemaCollation(identifier);
73
73
 
74
 
    res= alter_table(getSession(), 
 
74
    res= alter_table(&session(), 
75
75
                     identifier,
76
76
                     identifier,
77
77
                     &create_info, 
90
90
      identifier::Table identifier(first_table->getSchemaName(), first_table->getTableName(), table->getShare()->getPath());
91
91
      create_info.default_table_charset= plugin::StorageEngine::getSchemaCollation(identifier);
92
92
 
93
 
      res= alter_table(getSession(), 
 
93
      res= alter_table(&session(), 
94
94
                       identifier,
95
95
                       identifier,
96
96
                       &create_info,