~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

Merge Devananda's CHAR_LENGTH UDF plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
#include <drizzled/function/math/atan.h>
72
72
#include <drizzled/function/benchmark.h>
73
73
#include <drizzled/function/math/ceiling.h>
74
 
#include <drizzled/function/char_length.h>
75
74
#include <drizzled/function/coercibility.h>
76
75
#include <drizzled/function/connection_id.h>
77
76
#include <drizzled/function/math/cos.h>
367
366
};
368
367
 
369
368
 
370
 
class Create_func_char_length : public Create_func_arg1
371
 
{
372
 
public:
373
 
  using Create_func_arg1::create;
374
 
 
375
 
  virtual Item *create(Session *session, Item *arg1);
376
 
 
377
 
  static Create_func_char_length s_singleton;
378
 
 
379
 
protected:
380
 
  Create_func_char_length() {}
381
 
  virtual ~Create_func_char_length() {}
382
 
};
383
 
 
384
 
 
385
369
class Create_func_coercibility : public Create_func_arg1
386
370
{
387
371
public:
1776
1760
}
1777
1761
 
1778
1762
 
1779
 
Create_func_char_length Create_func_char_length::s_singleton;
1780
 
 
1781
 
Item*
1782
 
Create_func_char_length::create(Session *session, Item *arg1)
1783
 
{
1784
 
  return new (session->mem_root) Item_func_char_length(arg1);
1785
 
}
1786
 
 
1787
 
 
1788
1763
Create_func_coercibility Create_func_coercibility::s_singleton;
1789
1764
 
1790
1765
Item*
2831
2806
  { { C_STRING_WITH_LEN("BIN") }, BUILDER(Create_func_bin)},
2832
2807
  { { C_STRING_WITH_LEN("CEIL") }, BUILDER(Create_func_ceiling)},
2833
2808
  { { C_STRING_WITH_LEN("CEILING") }, BUILDER(Create_func_ceiling)},
2834
 
  { { C_STRING_WITH_LEN("CHARACTER_LENGTH") }, BUILDER(Create_func_char_length)},
2835
 
  { { C_STRING_WITH_LEN("CHAR_LENGTH") }, BUILDER(Create_func_char_length)},
2836
2809
  { { C_STRING_WITH_LEN("COERCIBILITY") }, BUILDER(Create_func_coercibility)},
2837
2810
  { { C_STRING_WITH_LEN("CONCAT") }, BUILDER(Create_func_concat)},
2838
2811
  { { C_STRING_WITH_LEN("CONCAT_WS") }, BUILDER(Create_func_concat_ws)},