~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_strfunc.h

  • 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:
38
38
  bool fix_fields(THD *thd, Item **ref);
39
39
};
40
40
 
41
 
class Item_func_md5 :public Item_str_func
42
 
{
43
 
  String tmp_value;
44
 
public:
45
 
  Item_func_md5(Item *a) :Item_str_func(a)
46
 
  {
47
 
    collation.set(&my_charset_bin);
48
 
  }
49
 
  String *val_str(String *);
50
 
  void fix_length_and_dec();
51
 
  const char *func_name() const { return "md5"; }
52
 
};
53
41
 
54
42
class Item_func_aes_encrypt :public Item_str_func
55
43
{