~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-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
Remove unused Name_resolution_context::error_reporter

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;