~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

Merge Devananda's CONNECTION_ID UDF plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
#include <drizzled/function/benchmark.h>
73
73
#include <drizzled/function/math/ceiling.h>
74
74
#include <drizzled/function/coercibility.h>
75
 
#include <drizzled/function/connection_id.h>
76
75
#include <drizzled/function/math/cos.h>
77
76
#include <drizzled/function/math/dec.h>
78
77
#include <drizzled/function/math/decimal_typecast.h>
407
406
};
408
407
 
409
408
 
410
 
class Create_func_connection_id : public Create_func_arg0
411
 
{
412
 
public:
413
 
  using Create_func_arg0::create;
414
 
 
415
 
  virtual Item *create(Session *session);
416
 
 
417
 
  static Create_func_connection_id s_singleton;
418
 
 
419
 
protected:
420
 
  Create_func_connection_id() {}
421
 
  virtual ~Create_func_connection_id() {}
422
 
};
423
 
 
424
 
 
425
409
class Create_func_conv : public Create_func_arg3
426
410
{
427
411
public:
1797
1781
}
1798
1782
 
1799
1783
 
1800
 
Create_func_connection_id Create_func_connection_id::s_singleton;
1801
 
 
1802
 
Item*
1803
 
Create_func_connection_id::create(Session *session)
1804
 
{
1805
 
  return new (session->mem_root) Item_func_connection_id();
1806
 
}
1807
 
 
1808
 
 
1809
1784
Create_func_conv Create_func_conv::s_singleton;
1810
1785
 
1811
1786
Item*
2781
2756
  { { C_STRING_WITH_LEN("COERCIBILITY") }, BUILDER(Create_func_coercibility)},
2782
2757
  { { C_STRING_WITH_LEN("CONCAT") }, BUILDER(Create_func_concat)},
2783
2758
  { { C_STRING_WITH_LEN("CONCAT_WS") }, BUILDER(Create_func_concat_ws)},
2784
 
  { { C_STRING_WITH_LEN("CONNECTION_ID") }, BUILDER(Create_func_connection_id)},
2785
2759
  { { C_STRING_WITH_LEN("CONV") }, BUILDER(Create_func_conv)},
2786
2760
  { { C_STRING_WITH_LEN("COS") }, BUILDER(Create_func_cos)},
2787
2761
  { { C_STRING_WITH_LEN("COT") }, BUILDER(Create_func_cot)},