~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_create_schema.cc

  • Committer: Brian Aker
  • Date: 2010-10-24 11:37:53 UTC
  • mfrom: (1874.2.4 bison)
  • Revision ID: brian@tangent.org-20101024113753-sdw59ktv6lyk0r22
Merge in show update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
using namespace drizzled;
30
30
 
31
31
ShowCreateSchema::ShowCreateSchema() :
32
 
  plugin::TableFunction("DATA_DICTIONARY", "SCHEMA_SQL_DEFINITION")
 
32
  show_dictionary::Show("SCHEMA_SQL_DEFINITION")
33
33
{
34
34
  add_field("SCHEMA_NAME", plugin::TableFunction::STRING, MAXIMUM_IDENTIFIER_LENGTH, false);
35
35
  add_field("SCHEMA_SQL_DEFINITION", plugin::TableFunction::STRING, TABLE_FUNCTION_BLOB_SIZE, false);
36
36
}
37
37
 
38
38
ShowCreateSchema::Generator::Generator(Field **arg) :
39
 
  plugin::TableFunction::Generator(arg),
 
39
  show_dictionary::Show::Generator(arg),
40
40
  is_primed(false),
41
41
  if_not_exists(false)
42
42
{
43
 
  statement::Select *select= static_cast<statement::Select *>(getSession().lex->statement);
 
43
  statement::Show *select= static_cast<statement::Show *>(getSession().lex->statement);
44
44
 
45
45
  if (not select->getShowSchema().empty())
46
46
  {