~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 08:00:16 UTC
  • mto: (210.1.1 drizzle)
  • mto: This revision was merged to the branch mainline in revision 211.
  • Revision ID: stewart@flamingspork.com-20080713080016-8qtjv9ypt42azzr6
CRC32() as UDF

Show diffs side-by-side

added added

removed removed

Lines of Context:
405
405
  virtual ~Create_func_cot() {}
406
406
};
407
407
 
408
 
 
409
 
class Create_func_crc32 : public Create_func_arg1
410
 
{
411
 
public:
412
 
  virtual Item *create(THD *thd, Item *arg1);
413
 
 
414
 
  static Create_func_crc32 s_singleton;
415
 
 
416
 
protected:
417
 
  Create_func_crc32() {}
418
 
  virtual ~Create_func_crc32() {}
419
 
};
420
 
 
421
 
 
422
408
class Create_func_date_format : public Create_func_arg2
423
409
{
424
410
public:
1943
1929
  return new (thd->mem_root) Item_func_div(i1, i2);
1944
1930
}
1945
1931
 
1946
 
 
1947
 
Create_func_crc32 Create_func_crc32::s_singleton;
1948
 
 
1949
 
Item*
1950
 
Create_func_crc32::create(THD *thd, Item *arg1)
1951
 
{
1952
 
  return new (thd->mem_root) Item_func_crc32(arg1);
1953
 
}
1954
 
 
1955
 
 
1956
1932
Create_func_date_format Create_func_date_format::s_singleton;
1957
1933
 
1958
1934
Item*
3135
3111
  { { C_STRING_WITH_LEN("CONV") }, BUILDER(Create_func_conv)},
3136
3112
  { { C_STRING_WITH_LEN("COS") }, BUILDER(Create_func_cos)},
3137
3113
  { { C_STRING_WITH_LEN("COT") }, BUILDER(Create_func_cot)},
3138
 
  { { C_STRING_WITH_LEN("CRC32") }, BUILDER(Create_func_crc32)},
3139
3114
  { { C_STRING_WITH_LEN("DATEDIFF") }, BUILDER(Create_func_datediff)},
3140
3115
  { { C_STRING_WITH_LEN("DATE_FORMAT") }, BUILDER(Create_func_date_format)},
3141
3116
  { { C_STRING_WITH_LEN("DAYNAME") }, BUILDER(Create_func_dayname)},