40 #include <drizzled/session.h>
41 #include <drizzled/sql_base.h>
42 #include <drizzled/function/str/strfunc.h>
43 #include <drizzled/plugin/function.h>
45 using namespace drizzled;
47 #define SHUTDOWN_MESSAGE "Beginning shutdown"
55 void fix_length_and_dec()
57 max_length=
sizeof(SHUTDOWN_MESSAGE) * system_charset_info->mbmaxlen;
60 const char *func_name()
const {
return "shutdown"; }
61 const char *fully_qualified_func_name()
const {
return "shutdown()"; }
67 str->copy(SHUTDOWN_MESSAGE,
sizeof(SHUTDOWN_MESSAGE) -1, system_charset_info);
75 context.add(
new plugin::Create_function<Shutdown>(
"shutdown"));
79 DRIZZLE_DECLARE_PLUGIN
85 N_(
"SHUTDOWN function"),
91 DRIZZLE_DECLARE_PLUGIN_END;