~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/datetime.h

  • Committer: Brian Aker
  • Date: 2009-10-16 10:27:33 UTC
  • mfrom: (1183.1.4 merge)
  • Revision ID: brian@gaz-20091016102733-b10po5oup0hjlilh
MergeĀ EngineĀ changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
#include <drizzled/field/str.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
class Field_datetime :public Field_str {
30
27
public:
31
28
 
63
60
  int  store(const char *to,uint32_t length, const CHARSET_INFO * const charset);
64
61
  int  store(double nr);
65
62
  int  store(int64_t nr, bool unsigned_val);
66
 
  int store_time(type::Time &ltime, type::timestamp_t type);
 
63
  int store_time(DRIZZLE_TIME *ltime, enum enum_drizzle_timestamp_type type);
67
64
  int reset(void)
68
65
  {
69
66
    ptr[0]=ptr[1]=ptr[2]=ptr[3]=ptr[4]=ptr[5]=ptr[6]=ptr[7]=0;
78
75
  void sql_type(String &str) const;
79
76
  bool can_be_compared_as_int64_t() const { return true; }
80
77
  bool zero_pack() const { return 1; }
81
 
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
82
 
  bool get_time(type::Time &ltime);
 
78
  bool get_date(DRIZZLE_TIME *ltime,uint32_t fuzzydate);
 
79
  bool get_time(DRIZZLE_TIME *ltime);
83
80
};
84
81
 
85
 
} /* namespace drizzled */
86
 
 
87
82
#endif /* DRIZZLED_FIELD_DATETIME_H */