~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: Stewart Smith
  • Date: 2010-02-15 03:55:09 UTC
  • mto: (1273.13.96 build)
  • mto: This revision was merged to the branch mainline in revision 1308.
  • Revision ID: stewart@flamingspork.com-20100215035509-y6sry4q4yymph2by
move SUBSTR, SUBSTRING and SUBSTR_INDEX to plugins. add parser hooks for substr being a plugin now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#include <drizzled/function/str/pad.h>
37
37
#include <drizzled/function/str/repeat.h>
38
38
#include <drizzled/function/str/str_conv.h>
39
 
#include <drizzled/function/str/substr.h>
40
39
#include <drizzled/function/str/trim.h>
41
40
#include <drizzled/function/str/uuid.h>
42
41
 
1261
1260
};
1262
1261
 
1263
1262
 
1264
 
class Create_func_substr_index : public Create_func_arg3
1265
 
{
1266
 
public:
1267
 
  using Create_func_arg3::create;
1268
 
 
1269
 
  virtual Item *create(Session *session, Item *arg1, Item *arg2, Item *arg3);
1270
 
 
1271
 
  static Create_func_substr_index s_singleton;
1272
 
 
1273
 
protected:
1274
 
  Create_func_substr_index() {}
1275
 
  virtual ~Create_func_substr_index() {}
1276
 
};
1277
 
 
1278
 
 
1279
1263
class Create_func_tan : public Create_func_arg1
1280
1264
{
1281
1265
public:
2531
2515
}
2532
2516
 
2533
2517
 
2534
 
Create_func_substr_index Create_func_substr_index::s_singleton;
2535
 
 
2536
 
Item*
2537
 
Create_func_substr_index::create(Session *session, Item *arg1, Item *arg2, Item *arg3)
2538
 
{
2539
 
  return new (session->mem_root) Item_func_substr_index(arg1, arg2, arg3);
2540
 
}
2541
 
 
2542
2518
Create_func_tan Create_func_tan::s_singleton;
2543
2519
 
2544
2520
Item*
2713
2689
  { { C_STRING_WITH_LEN("SPACE") }, BUILDER(Create_func_space)},
2714
2690
  { { C_STRING_WITH_LEN("SQRT") }, BUILDER(Create_func_sqrt)},
2715
2691
  { { C_STRING_WITH_LEN("STRCMP") }, BUILDER(Create_func_strcmp)},
2716
 
  { { C_STRING_WITH_LEN("SUBSTRING_INDEX") }, BUILDER(Create_func_substr_index)},
2717
2692
  { { C_STRING_WITH_LEN("TAN") }, BUILDER(Create_func_tan)},
2718
2693
  { { C_STRING_WITH_LEN("TIME_FORMAT") }, BUILDER(Create_func_time_format)},
2719
2694
  { { C_STRING_WITH_LEN("TO_DAYS") }, BUILDER(Create_func_to_days)},