~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_indexes.cc

  • Committer: Brian Aker
  • Date: 2010-08-18 19:37:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1720.
  • Revision ID: brian@tangent.org-20100818193719-bxxzn1pi22styowd
created function that can be used to simply crash the server.

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
 
  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
  {