~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/shutdown_function/shutdown.cc

Merge Monty - Updates to pandora-build to support features of gcc 4.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 *
35
35
 */
36
36
 
37
 
#include <config.h>
 
37
#include "config.h"
38
38
 
39
39
#include <signal.h>
40
40
#include <drizzled/session.h>
41
 
#include <drizzled/sql_base.h>
42
41
#include <drizzled/function/str/strfunc.h>
43
 
#include <drizzled/plugin/function.h>
44
42
 
45
43
using namespace drizzled;
46
44
 
47
45
#define SHUTDOWN_MESSAGE "Beginning shutdown"
48
46
 
49
 
class Shutdown : public Item_str_func
 
47
class Shutdown :public Item_str_func
50
48
{
51
49
public:
52
 
  Shutdown()
 
50
  Shutdown() :
 
51
    Item_str_func()
53
52
  { }
54
53
 
 
54
 
55
55
  void fix_length_and_dec()
56
56
  {
57
57
    max_length= sizeof(SHUTDOWN_MESSAGE) * system_charset_info->mbmaxlen;
85
85
  "Cause the database to shutdown.",
86
86
  PLUGIN_LICENSE_BSD,
87
87
  initialize, /* Plugin Init */
88
 
  NULL,   /* depends */
 
88
  NULL,   /* system variables */
89
89
  NULL    /* config options */
90
90
}
91
91
DRIZZLE_DECLARE_PLUGIN_END;