~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_indexes.cc

  • Committer: Stewart Smith
  • Date: 2010-04-06 07:38:20 UTC
  • mfrom: (1283.28.40)
  • mto: (1283.38.1)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: stewart@flamingspork.com-20100406073820-uf1mqht2jhn5zyl4
Merged embedded-innodb-position-rnd-pos into embedded-innodb-autoincrement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
  index_iterator(0),
45
45
  index_part_iterator(0)
46
46
{
47
 
  Session *session= current_session;
48
 
  statement::Select *select= static_cast<statement::Select *>(session->lex->statement);
 
47
  statement::Select *select= static_cast<statement::Select *>(getSession().lex->statement);
49
48
 
50
49
  table_name.append(select->getShowTable().c_str());
51
50
  TableIdentifier identifier(select->getShowSchema().c_str(), select->getShowTable().c_str());
52
51
 
53
 
  is_tables_primed= plugin::StorageEngine::getTableDefinition(*session,
 
52
  is_tables_primed= plugin::StorageEngine::getTableDefinition(getSession(),
54
53
                                                              identifier,
55
54
                                                              table_proto);
56
55
}