1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2010 Brian Aker
10
#include <drizzled/session.h>
11
#include <drizzled/function/str/strfunc.h>
13
using namespace drizzled;
15
class Crash :public Item_str_func
23
void fix_length_and_dec()
25
max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen;
28
const char *func_name() const { return "crash"; }
29
const char *fully_qualified_func_name() const { return "crash()"; }
31
String *val_str(String *str)
39
static int initialize(drizzled::module::Context &context)
41
context.add(new plugin::Create_function<Crash>("crash"));
45
DRIZZLE_DECLARE_PLUGIN
51
"Cause the database to crash.",
53
initialize, /* Plugin Init */
54
NULL, /* system variables */
55
NULL /* config options */
57
DRIZZLE_DECLARE_PLUGIN_END;