~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_tables.cc

  • Committer: Brian Aker
  • Date: 2010-04-02 17:07:46 UTC
  • Revision ID: brian@gaz-20100402170746-3hhpiqx4mbn0gavo
Move toward not having to call current_session (first pass).

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  drizzled::plugin::TableFunction::Generator(arg),
37
37
  is_primed(false)
38
38
{
39
 
  Session *session= current_session;
40
 
  statement::Select *select= static_cast<statement::Select *>(session->lex->statement);
 
39
  statement::Select *select= static_cast<statement::Select *>(getSession().lex->statement);
41
40
 
42
41
  schema_name.append(select->getShowSchema());
43
42
  assert(not schema_name.empty());
51
50
  }
52
51
  else
53
52
  {
54
 
    Session *session= current_session;
55
53
    SchemaIdentifier identifier(schema_name);
56
 
    plugin::StorageEngine::getTableIdentifiers(*session, identifier, set_of_identifiers);
 
54
    plugin::StorageEngine::getTableIdentifiers(getSession(), identifier, set_of_identifiers);
57
55
    set_of_identifiers.sort();
58
56
    table_iterator= set_of_identifiers.begin();
59
57
    is_primed= true;