~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: Stewart Smith
  • Date: 2010-09-20 05:23:06 UTC
  • mto: (1786.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1787.
  • Revision ID: stewart@flamingspork.com-20100920052306-89pp11uw4gytjmlx
move CEIL() and CEILING() function into math_functions plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
 
65
65
#include <drizzled/function/func.h>
66
66
#include <drizzled/function/additive_op.h>
67
 
#include <drizzled/function/math/ceiling.h>
68
67
#include <drizzled/function/math/dec.h>
69
68
#include <drizzled/function/math/decimal_typecast.h>
70
69
#include <drizzled/function/math/exp.h>
262
261
  virtual ~Create_func_bin() {}
263
262
};
264
263
 
265
 
 
266
 
class Create_func_ceiling : public Create_func_arg1
267
 
{
268
 
public:
269
 
  using Create_func_arg1::create;
270
 
 
271
 
  virtual Item *create(Session *session, Item *arg1);
272
 
 
273
 
  static Create_func_ceiling s_singleton;
274
 
 
275
 
protected:
276
 
  Create_func_ceiling() {}
277
 
  virtual ~Create_func_ceiling() {}
278
 
};
279
 
 
280
264
class Create_func_concat : public Create_native_func
281
265
{
282
266
public:
1333
1317
  return new (session->mem_root) Item_func_conv(arg1, i10, i2);
1334
1318
}
1335
1319
 
1336
 
 
1337
 
Create_func_ceiling Create_func_ceiling::s_singleton;
1338
 
 
1339
 
Item*
1340
 
Create_func_ceiling::create(Session *session, Item *arg1)
1341
 
{
1342
 
  return new (session->mem_root) Item_func_ceiling(arg1);
1343
 
}
1344
 
 
1345
1320
Create_func_concat Create_func_concat::s_singleton;
1346
1321
 
1347
1322
Item*
2162
2137
static Native_func_registry func_array[] =
2163
2138
{
2164
2139
  { { C_STRING_WITH_LEN("BIN") }, BUILDER(Create_func_bin)},
2165
 
  { { C_STRING_WITH_LEN("CEIL") }, BUILDER(Create_func_ceiling)},
2166
 
  { { C_STRING_WITH_LEN("CEILING") }, BUILDER(Create_func_ceiling)},
2167
2140
  { { C_STRING_WITH_LEN("CONCAT") }, BUILDER(Create_func_concat)},
2168
2141
  { { C_STRING_WITH_LEN("CONCAT_WS") }, BUILDER(Create_func_concat_ws)},
2169
2142
  { { C_STRING_WITH_LEN("CONV") }, BUILDER(Create_func_conv)},