~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_indexes.cc

Removed my_print_defaults. Guess what - it's no longer relevant.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
using namespace drizzled;
28
28
 
29
29
ShowIndexes::ShowIndexes() :
30
 
  show_dictionary::Show("SHOW_INDEXES")
 
30
  plugin::TableFunction("DATA_DICTIONARY", "SHOW_INDEXES")
31
31
{
32
32
  add_field("Table");
33
33
  add_field("Unique", plugin::TableFunction::BOOLEAN, 0, false);
37
37
}
38
38
 
39
39
ShowIndexes::Generator::Generator(Field **arg) :
40
 
  show_dictionary::Show::Generator(arg),
 
40
  plugin::TableFunction::Generator(arg),
41
41
  is_tables_primed(false),
42
42
  is_index_primed(false),
43
43
  is_index_part_primed(false),
44
44
  index_iterator(0),
45
45
  index_part_iterator(0)
46
46
{
47
 
  if (not isShowQuery())
48
 
    return;
49
 
 
50
 
  statement::Show *select= static_cast<statement::Show *>(getSession().lex->statement);
 
47
  statement::Select *select= static_cast<statement::Select *>(getSession().lex->statement);
51
48
 
52
49
  if (not select->getShowTable().empty() && not select->getShowSchema().empty())
53
50
  {
54
51
    table_name.append(select->getShowTable().c_str());
55
 
    identifier::Table identifier(select->getShowSchema().c_str(), select->getShowTable().c_str());
 
52
    TableIdentifier identifier(select->getShowSchema().c_str(), select->getShowTable().c_str());
56
53
 
57
54
    is_tables_primed= plugin::StorageEngine::getTableDefinition(getSession(),
58
55
                                                                identifier,