~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/shutdown_function/shutdown.cc

  • Committer: pcrews
  • Date: 2011-05-24 17:36:24 UTC
  • mfrom: (1099.4.232 drizzle)
  • Revision ID: pcrews@lucid32-20110524173624-mwr1bvq6fa1r01ao
Updated translations + 2011.05.18 tarball tag

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