21 #include "internal_dictionary.h"
23 #include <drizzled/current_session.h>
56 using namespace drizzled;
62 InnodbInternalTables::InnodbInternalTables() :
63 plugin::TableFunction(
"DATA_DICTIONARY",
"INNODB_INTERNAL_TABLES")
65 add_field(
"TABLE_NAME", plugin::TableFunction::STRING, MAXIMUM_IDENTIFIER_LENGTH,
false);
68 static void my_dict_print_callback(
void *ptr,
const char *table_name)
72 myrec->push(table_name);
75 InnodbInternalTables::Generator::Generator(
Field **arg) :
76 plugin::TableFunction::Generator(arg)
78 dict_print_with_callback(my_dict_print_callback, &recorder);
82 bool InnodbInternalTables::Generator::populate()
84 std::string table_name;
85 bool more= recorder.next(table_name);