00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #include <config.h>
00022
00023 #include <plugin/function_dictionary/dictionary.h>
00024
00025 #include <drizzled/atomics.h>
00026 #include <drizzled/session.h>
00027
00028
00029 using namespace drizzled;
00030 using namespace std;
00031
00032 #define FUNCTION_NAME_LEN 64
00033
00034 function_dictionary::Functions::Functions() :
00035 plugin::TableFunction("DATA_DICTIONARY", "FUNCTIONS")
00036 {
00037 add_field("FUNCTION_NAME", plugin::TableFunction::STRING, FUNCTION_NAME_LEN, false);
00038 }
00039
00040 bool function_dictionary::Functions::Generator::populate()
00041 {
00042 std::string *name_ptr;
00043
00044 while ((name_ptr= functions))
00045 {
00046 push(*name_ptr);
00047 return true;
00048 }
00049
00050 return false;
00051 }