21 #include "internal_dictionary.h"
23 #include <drizzled/current_session.h>
55 using namespace drizzled;
61 InnodbInternalTables::InnodbInternalTables() :
62 plugin::TableFunction(
"DATA_DICTIONARY",
"INNODB_INTERNAL_TABLES")
64 add_field(
"TABLE_NAME", plugin::TableFunction::STRING, MAXIMUM_IDENTIFIER_LENGTH,
false);
67 static void my_dict_print_callback(
void *ptr,
const char *table_name)
71 myrec->push(table_name);
74 InnodbInternalTables::Generator::Generator(
Field **arg) :
75 plugin::TableFunction::Generator(arg)
77 dict_print_with_callback(my_dict_print_callback, &recorder);
81 bool InnodbInternalTables::Generator::populate()
83 std::string table_name;
84 bool more= recorder.next(table_name);