~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/math_functions/functions.cc

  • Committer: Stewart Smith
  • Date: 2010-09-20 05:32:43 UTC
  • mto: (1786.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1787.
  • Revision ID: stewart@flamingspork.com-20100920053243-u844cs5xc1sby4xw
add argument check to EXP()

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
6
5
 *
7
6
 *  This program is free software; you can redistribute it and/or modify
8
7
 *  it under the terms of the GNU General Public License as published by
34
33
#include "plugin/math_functions/sqrt.h"
35
34
#include "plugin/math_functions/ceiling.h"
36
35
#include "plugin/math_functions/exp.h"
37
 
#include "plugin/math_functions/floor.h"
38
 
#include "plugin/math_functions/ord.h"
39
36
 
40
37
using namespace drizzled;
41
38
 
58
55
  context.add(new plugin::Create_function<Item_func_ceiling>("ceil"));
59
56
  context.add(new plugin::Create_function<Item_func_ceiling>("ceiling"));
60
57
  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"));
63
58
 
64
59
  return 0;
65
60
}
69
64
  DRIZZLE_VERSION_ID,
70
65
  "Math Functions",
71
66
  "1.0",
72
 
  "Brian Aker, Stewart Smith",
 
67
  "Brian Aker",
73
68
  "Math Functions.",
74
69
  PLUGIN_LICENSE_GPL,
75
70
  init,