~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/math_functions/functions.cc

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
31
32
#include "plugin/math_functions/pow.h"
32
33
#include "plugin/math_functions/ln.h"
33
34
#include "plugin/math_functions/sqrt.h"
 
35
#include "plugin/math_functions/ceiling.h"
 
36
#include "plugin/math_functions/exp.h"
 
37
#include "plugin/math_functions/floor.h"
 
38
#include "plugin/math_functions/ord.h"
34
39
 
35
40
using namespace drizzled;
36
41
 
50
55
  context.add(new plugin::Create_function<Item_func_pow>("power"));
51
56
  context.add(new plugin::Create_function<Item_func_ln>("ln"));
52
57
  context.add(new plugin::Create_function<Item_func_sqrt>("sqrt"));
 
58
  context.add(new plugin::Create_function<Item_func_ceiling>("ceil"));
 
59
  context.add(new plugin::Create_function<Item_func_ceiling>("ceiling"));
 
60
  context.add(new plugin::Create_function<Item_func_exp>("exp"));
 
61
  context.add(new plugin::Create_function<Item_func_floor>("floor"));
 
62
  context.add(new plugin::Create_function<Item_func_ord>("ord"));
53
63
 
54
64
  return 0;
55
65
}
59
69
  DRIZZLE_VERSION_ID,
60
70
  "Math Functions",
61
71
  "1.0",
62
 
  "Brian Aker",
 
72
  "Brian Aker, Stewart Smith",
63
73
  "Math Functions.",
64
74
  PLUGIN_LICENSE_GPL,
65
75
  init,