~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/create.cc

  • Committer: devananda
  • Date: 2009-07-05 15:17:11 UTC
  • mto: (1093.1.5 captain)
  • mto: This revision was merged to the branch mainline in revision 1095.
  • Revision ID: devananda.vdv@gmail.com-20090705151711-jk8ow07cec1f0n7u
refactored function/version into plugin/version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1475
1475
};
1476
1476
 
1477
1477
 
1478
 
class Create_func_version : public Create_func_arg0
1479
 
{
1480
 
public:
1481
 
  using Create_func_arg0::create;
1482
 
 
1483
 
  virtual Item *create(Session *session);
1484
 
 
1485
 
  static Create_func_version s_singleton;
1486
 
 
1487
 
protected:
1488
 
  Create_func_version() {}
1489
 
  virtual ~Create_func_version() {}
1490
 
};
1491
 
 
1492
 
 
1493
1478
class Create_func_weekday : public Create_func_arg1
1494
1479
{
1495
1480
public:
2785
2770
}
2786
2771
 
2787
2772
 
2788
 
Create_func_version Create_func_version::s_singleton;
2789
 
 
2790
 
Item*
2791
 
Create_func_version::create(Session *session)
2792
 
{
2793
 
  return new (session->mem_root) Item_static_string_func("version()",
2794
 
                                                         VERSION,
2795
 
                                                         (uint32_t) strlen(VERSION),
2796
 
                                                         system_charset_info,
2797
 
                                                         DERIVATION_SYSCONST);
2798
 
}
2799
 
 
2800
 
 
2801
2773
Create_func_weekday Create_func_weekday::s_singleton;
2802
2774
 
2803
2775
Item*
2910
2882
  { { C_STRING_WITH_LEN("UNIX_TIMESTAMP") }, BUILDER(Create_func_unix_timestamp)},
2911
2883
  { { C_STRING_WITH_LEN("UPPER") }, BUILDER(Create_func_ucase)},
2912
2884
  { { C_STRING_WITH_LEN("UUID") }, BUILDER(Create_func_uuid)},
2913
 
  { { C_STRING_WITH_LEN("VERSION") }, BUILDER(Create_func_version)},
2914
2885
  { { C_STRING_WITH_LEN("WEEKDAY") }, BUILDER(Create_func_weekday)},
2915
2886
 
2916
2887
  { {0, 0}, NULL}