22 #include <drizzled/function/str/strfunc.h>
23 #include <drizzled/item/func.h>
24 #include <drizzled/plugin.h>
25 #include <drizzled/plugin/function.h>
30 using namespace drizzled;
36 const char *func_name()
const {
return "hello_world"; }
38 s->set(STRING_WITH_LEN(
"Hello World!"),system_charset_info);
41 void fix_length_and_dec() {
42 max_length=strlen(
"Hello World!");
46 plugin::Create_function<Item_func_hello_world> *hello_world_udf= NULL;
51 new plugin::Create_function<Item_func_hello_world>(
"hello_world");
52 context.add(hello_world_udf);
57 DRIZZLE_DECLARE_PLUGIN
63 N_(
"Example Function plugin"),
65 hello_world_plugin_init,
69 DRIZZLE_DECLARE_PLUGIN_END;
String * val_str(String *s)