~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_create.cc

  • Committer: Stewart Smith
  • Date: 2008-07-13 06:56:15 UTC
  • mto: (210.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: stewart@flamingspork.com-20080713065615-vzok75kgnnviokl9
Move MD5() into a UDF

Show diffs side-by-side

added added

removed removed

Lines of Context:
964
964
  virtual ~Create_func_master_pos_wait() {}
965
965
};
966
966
 
967
 
 
968
 
class Create_func_md5 : public Create_func_arg1
969
 
{
970
 
public:
971
 
  virtual Item *create(THD *thd, Item *arg1);
972
 
 
973
 
  static Create_func_md5 s_singleton;
974
 
 
975
 
protected:
976
 
  Create_func_md5() {}
977
 
  virtual ~Create_func_md5() {}
978
 
};
979
 
 
980
 
 
981
967
class Create_func_monthname : public Create_func_arg1
982
968
{
983
969
public:
2629
2615
}
2630
2616
 
2631
2617
 
2632
 
Create_func_md5 Create_func_md5::s_singleton;
2633
 
 
2634
 
Item*
2635
 
Create_func_md5::create(THD *thd, Item *arg1)
2636
 
{
2637
 
  return new (thd->mem_root) Item_func_md5(arg1);
2638
 
}
2639
 
 
2640
 
 
2641
2618
Create_func_monthname Create_func_monthname::s_singleton;
2642
2619
 
2643
2620
Item*
3202
3179
  { { C_STRING_WITH_LEN("MAKETIME") }, BUILDER(Create_func_maketime)},
3203
3180
  { { C_STRING_WITH_LEN("MAKE_SET") }, BUILDER(Create_func_make_set)},
3204
3181
  { { C_STRING_WITH_LEN("MASTER_POS_WAIT") }, BUILDER(Create_func_master_pos_wait)},
3205
 
  { { C_STRING_WITH_LEN("MD5") }, BUILDER(Create_func_md5)},
3206
3182
  { { C_STRING_WITH_LEN("MONTHNAME") }, BUILDER(Create_func_monthname)},
3207
3183
  { { C_STRING_WITH_LEN("NULLIF") }, BUILDER(Create_func_nullif)},
3208
3184
  { { C_STRING_WITH_LEN("OCT") }, BUILDER(Create_func_oct)},