~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/data_engine/function.cc

Does not work (compile issue in plugin).

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
static drizzled::plugin::StorageEngine *function_plugin= NULL;
82
82
static CharacterSetsTool *character_sets;
83
83
static CollationsTool *collations;
84
 
static ColumnsTool *columns;
85
 
static IndexPartsTool *index_parts;
86
 
static IndexesTool *indexes;
87
84
static ModulesTool *modules;
88
85
static PluginsTool *plugins;
89
86
static ProcesslistTool *processlist;
90
 
static ReferentialConstraintsTool *referential_constraints;
91
 
static SchemasTool *schemas;
92
 
static SchemaNames *schema_names;
93
87
static StatementsTool *global_statements;
94
88
static StatementsTool *session_statements;
95
89
static StatusTool *global_status;
96
90
static StatusTool *session_status;
97
 
static TableConstraintsTool *table_constraints;
98
 
static TablesTool *tables;
99
 
static TableNames *local_tables;
100
91
static VariablesTool *global_variables;
101
92
static VariablesTool *session_variables;
102
 
static TableStatus *table_status;
103
93
 
104
94
 
105
95
static int init(drizzled::plugin::Registry &registry)
112
102
 
113
103
  character_sets= new(std::nothrow)CharacterSetsTool;
114
104
  collations= new(std::nothrow)CollationsTool;
115
 
  columns= new(std::nothrow)ColumnsTool;
116
 
  index_parts= new(std::nothrow)IndexPartsTool;
117
 
  indexes= new(std::nothrow)IndexesTool;
118
105
  modules= new(std::nothrow)ModulesTool;
119
106
  plugins= new(std::nothrow)PluginsTool;
120
107
  processlist= new(std::nothrow)ProcesslistTool;
121
 
  referential_constraints= new(std::nothrow)ReferentialConstraintsTool;
122
 
  schemas= new(std::nothrow)SchemasTool;
123
108
  global_statements= new(std::nothrow)StatementsTool(true);
124
109
  global_status= new(std::nothrow)StatusTool(true);
125
 
  local_tables= new(std::nothrow)TableNames;
126
 
  schema_names= new(std::nothrow)SchemaNames;
127
110
  session_statements= new(std::nothrow)StatementsTool(false);
128
111
  session_status= new(std::nothrow)StatusTool(false);
129
 
  table_constraints= new(std::nothrow)TableConstraintsTool;
130
 
  table_status= new(std::nothrow)TableStatus;
131
 
  tables= new(std::nothrow)TablesTool;
132
112
  global_variables= new(std::nothrow)VariablesTool(true);
133
113
  session_variables= new(std::nothrow)VariablesTool(false);
134
114
 
136
116
 
137
117
  registry.add(character_sets);
138
118
  registry.add(collations);
139
 
  registry.add(columns);
140
119
  registry.add(global_statements);
141
120
  registry.add(global_status);
142
121
  registry.add(global_variables);
143
 
  registry.add(index_parts);
144
 
  registry.add(indexes);
145
 
  registry.add(local_tables);
146
122
  registry.add(modules);
147
123
  registry.add(plugins);
148
124
  registry.add(processlist);
149
 
  registry.add(referential_constraints);
150
 
  registry.add(schema_names);
151
 
  registry.add(schemas);
152
125
  registry.add(session_statements);
153
126
  registry.add(session_status);
154
127
  registry.add(session_variables);
155
 
  registry.add(table_constraints);
156
 
  registry.add(table_status);
157
 
  registry.add(tables);
158
128
  
159
129
  return 0;
160
130
}
166
136
 
167
137
  delete character_sets;
168
138
  delete collations;
169
 
  delete columns;
170
139
  delete global_statements;
171
140
  delete global_status;
172
141
  delete global_variables;
173
 
  delete index_parts;
174
 
  delete indexes;
175
 
  delete local_tables;
176
142
  delete modules;
177
143
  delete plugins;
178
144
  delete processlist;
179
 
  delete referential_constraints;
180
 
  delete schema_names;
181
 
  delete schemas;
182
145
  delete session_statements;
183
146
  delete session_status;
184
147
  delete session_variables;
185
 
  delete table_constraints;
186
 
  delete table_status;
187
 
  delete tables;
188
148
 
189
149
  return 0;
190
150
}