~jaypipes/drizzle/replication-to-transaction

« back to all changes in this revision

Viewing changes to plugin/schema_dictionary/dictionary.cc

  • Committer: Brian Aker
  • Date: 2010-03-09 22:58:27 UTC
  • mfrom: (1320.1.18 build)
  • Revision ID: brian@gaz-20100309225827-7igxztca4lrj3fx3
Merge in show status work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
static TablesTool *tables;
36
36
static ShowTables *local_tables;
37
37
static ShowTableStatus *table_status;
 
38
static ShowTemporaryTables *show_temporary_tables;
38
39
 
39
40
 
40
41
static int init(drizzled::plugin::Registry &registry)
42
43
  columns= new(std::nothrow)ColumnsTool;
43
44
  index_parts= new(std::nothrow)IndexPartsTool;
44
45
  indexes= new(std::nothrow)IndexesTool;
 
46
  local_tables= new(std::nothrow)ShowTables;
45
47
  referential_constraints= new(std::nothrow)ReferentialConstraintsTool;
 
48
  schema_names= new(std::nothrow)SchemaNames;
46
49
  schemas= new(std::nothrow)SchemasTool;
47
 
  local_tables= new(std::nothrow)ShowTables;
48
 
  schema_names= new(std::nothrow)SchemaNames;
 
50
  show_columns= new(std::nothrow)ShowColumns;
49
51
  show_indexes= new(std::nothrow)ShowIndexes;
50
 
  show_columns= new(std::nothrow)ShowColumns;
 
52
  show_temporary_tables= new(std::nothrow)ShowTemporaryTables;
51
53
  table_constraints= new(std::nothrow)TableConstraintsTool;
52
54
  table_status= new(std::nothrow)ShowTableStatus;
53
55
  tables= new(std::nothrow)TablesTool;
59
61
  registry.add(referential_constraints);
60
62
  registry.add(schema_names);
61
63
  registry.add(schemas);
 
64
  registry.add(show_columns);
62
65
  registry.add(show_indexes);
63
 
  registry.add(show_columns);
 
66
  registry.add(show_temporary_tables);
64
67
  registry.add(table_constraints);
65
68
  registry.add(table_status);
66
69
  registry.add(tables);
77
80
  registry.remove(referential_constraints);
78
81
  registry.remove(schema_names);
79
82
  registry.remove(schemas);
 
83
  registry.remove(show_columns);
80
84
  registry.remove(show_indexes);
81
 
  registry.remove(show_columns);
 
85
  registry.remove(show_temporary_tables);
82
86
  registry.remove(table_constraints);
83
87
  registry.remove(table_status);
84
88
  registry.remove(tables);
91
95
  delete schemas;
92
96
  delete show_columns;
93
97
  delete show_indexes;
 
98
  delete show_temporary_tables;
94
99
  delete table_constraints;
95
100
  delete table_status;
96
101
  delete tables;