~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/now.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
#include "drizzled/temporal.h"
26
26
 
27
 
namespace drizzled
28
 
{
29
 
 
30
27
/* Abstract CURRENT_TIMESTAMP function. See also Item_func_curtime */
31
28
 
32
29
class Item_func_now :public Item_date_func
36
33
  char buff[20*2+32];   // +32 to make my_snprintf_{8bit|ucs2} happy
37
34
  uint32_t buff_length;
38
35
  DRIZZLE_TIME ltime;
39
 
  DateTime cached_temporal;
 
36
  drizzled::DateTime cached_temporal;
40
37
public:
41
38
  Item_func_now() :Item_date_func() {}
42
39
  Item_func_now(Item *a) :Item_date_func(a) {}
52
49
   * Always returns true, since a DateTime can always be constructed
53
50
   * from a time_t
54
51
   *
55
 
   * @param Reference to a DateTime to populate
 
52
   * @param Reference to a drizzled::DateTime to populate
56
53
   */
57
 
  bool get_temporal(DateTime &temporal);
 
54
  bool get_temporal(drizzled::DateTime &temporal);
58
55
  bool get_date(DRIZZLE_TIME *res, uint32_t fuzzy_date);
59
56
  virtual void store_now_in_TIME(DRIZZLE_TIME *now_time)=0;
60
57
};
79
76
  virtual void store_now_in_TIME(DRIZZLE_TIME *now_time);
80
77
};
81
78
 
82
 
} /* namespace drizzled */
 
79
 
 
80
 
83
81
 
84
82
#endif /* DRIZZLED_FUNCTION_TIME_NOW_H */