~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_indexes.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
#include "config.h"
22
22
#include "plugin/show_dictionary/dictionary.h"
23
 
#include "drizzled/identifier.h"
 
23
#include "drizzled/table_identifier.h"
24
24
 
25
25
 
26
26
using namespace std;
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
 
  add_field("Unique", plugin::TableFunction::BOOLEAN, 0, false);
 
33
  add_field("Unique", plugin::TableFunction::BOOLEAN);
34
34
  add_field("Key_name");
35
 
  add_field("Seq_in_index", plugin::TableFunction::NUMBER, 0, false);
 
35
  add_field("Seq_in_index", plugin::TableFunction::NUMBER);
36
36
  add_field("Column_name");
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
 
  statement::Show *select= static_cast<statement::Show *>(getSession().lex->statement);
 
47
  statement::Select *select= static_cast<statement::Select *>(getSession().lex->statement);
48
48
 
49
49
  if (not select->getShowTable().empty() && not select->getShowSchema().empty())
50
50
  {