~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/shutdown_function/shutdown.cc

  • Committer: Olaf van der Spek
  • Date: 2011-02-28 14:09:50 UTC
  • mfrom: (2207 bootstrap)
  • mto: (2209.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2210.
  • Revision ID: olafvdspek@gmail.com-20110228140950-2nu0hyzhuww3wssx
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
#include <signal.h>
40
40
#include <drizzled/session.h>
41
41
#include <drizzled/function/str/strfunc.h>
 
42
#include <drizzled/plugin/function.h>
42
43
 
43
44
using namespace drizzled;
44
45
 
45
46
#define SHUTDOWN_MESSAGE "Beginning shutdown"
46
47
 
47
 
class Shutdown :public Item_str_func
 
48
class Shutdown : public Item_str_func
48
49
{
49
50
public:
50
 
  Shutdown() :
51
 
    Item_str_func()
 
51
  Shutdown()
52
52
  { }
53
53
 
54
 
 
55
54
  void fix_length_and_dec()
56
55
  {
57
56
    max_length= sizeof(SHUTDOWN_MESSAGE) * system_charset_info->mbmaxlen;