~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/string_functions/functions.cc

  • Committer: lbieber
  • Date: 2010-09-22 22:06:36 UTC
  • mfrom: (1786.1.3 build)
  • Revision ID: lbieber@orisndriz08-20100922220636-agrmqaqv2u7ln6ff
Merge Shrews - Add transaction log bulk tests
Merge Brian - Remove 3 byte indexes
Merge Stewart - Move string functions into plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
4
 *  Copyright (C) 2010 Brian Aker
 
5
 *  Copyright (C) 2010 Stewart Smith
5
6
 *
6
7
 *  This program is free software; you can redistribute it and/or modify
7
8
 *  it under the terms of the GNU General Public License as published by
21
22
#include "config.h"
22
23
#include "plugin/string_functions/functions.h"
23
24
 
 
25
#include "elt.h"
 
26
#include "format.h"
 
27
#include "quote.h"
 
28
 
24
29
using namespace drizzled;
25
30
 
26
31
static int init(drizzled::module::Context &context)
27
32
{
28
 
  (void)context;
29
 
  
 
33
  context.add(new plugin::Create_function<Item_func_elt>("elt"));
 
34
  context.add(new plugin::Create_function<Item_func_format>("format"));
 
35
  context.add(new plugin::Create_function<Item_func_quote>("quote"));
 
36
 
30
37
  return 0;
31
38
}
32
39
 
35
42
  DRIZZLE_VERSION_ID,
36
43
  "String Functions",
37
44
  "1.0",
38
 
  "Brian Aker",
 
45
  "Brian Aker, Stewart Smith",
39
46
  "String Functions.",
40
47
  PLUGIN_LICENSE_GPL,
41
48
  init,