~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: Stewart Smith
  • Date: 2010-02-19 07:27:21 UTC
  • mto: (1273.13.96 build)
  • mto: This revision was merged to the branch mainline in revision 1308.
  • Revision ID: stewart@flamingspork.com-20100219072721-hvef9ybvh92h79im
convert UUID() to plugin. We move the libuuid requirement to the UUID() function plugin as it's not neeeded anywhere else

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include <drizzled/function/str/repeat.h>
38
38
#include <drizzled/function/str/str_conv.h>
39
39
#include <drizzled/function/str/trim.h>
40
 
#include <drizzled/function/str/uuid.h>
41
40
 
42
41
#include <drizzled/function/time/date_format.h>
43
42
#include <drizzled/function/time/dayname.h>
1348
1347
};
1349
1348
 
1350
1349
 
1351
 
class Create_func_uuid : public Create_func_arg0
1352
 
{
1353
 
public:
1354
 
  using Create_func_arg0::create;
1355
 
 
1356
 
  virtual Item *create(Session *session);
1357
 
 
1358
 
  static Create_func_uuid s_singleton;
1359
 
 
1360
 
protected:
1361
 
  Create_func_uuid() {}
1362
 
  virtual ~Create_func_uuid() {}
1363
 
};
1364
 
 
1365
 
 
1366
1350
class Create_func_weekday : public Create_func_arg1
1367
1351
{
1368
1352
public:
2584
2568
}
2585
2569
 
2586
2570
 
2587
 
Create_func_uuid Create_func_uuid::s_singleton;
2588
 
 
2589
 
Item*
2590
 
Create_func_uuid::create(Session *session)
2591
 
{
2592
 
  return new (session->mem_root) Item_func_uuid();
2593
 
}
2594
 
 
2595
 
 
2596
2571
Create_func_weekday Create_func_weekday::s_singleton;
2597
2572
 
2598
2573
Item*
2695
2670
  { { C_STRING_WITH_LEN("UCASE") }, BUILDER(Create_func_ucase)},
2696
2671
  { { C_STRING_WITH_LEN("UNIX_TIMESTAMP") }, BUILDER(Create_func_unix_timestamp)},
2697
2672
  { { C_STRING_WITH_LEN("UPPER") }, BUILDER(Create_func_ucase)},
2698
 
  { { C_STRING_WITH_LEN("UUID") }, BUILDER(Create_func_uuid)},
2699
2673
  { { C_STRING_WITH_LEN("WEEKDAY") }, BUILDER(Create_func_weekday)},
2700
2674
 
2701
2675
  { {0, 0}, NULL}