~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/epoch.h

  • Committer: Brian Aker
  • Date: 2011-01-25 23:29:53 UTC
  • mto: (2115.1.2 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2116.
  • Revision ID: brian@tangent.org-20110125232953-pi24x5cgp0atbjq2
Encapsulate the condition we use to being a per-session case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  enum_field_types type() const { return DRIZZLE_TYPE_TIMESTAMP;}
51
51
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
52
52
  enum Item_result cmp_type () const { return INT_RESULT; }
53
 
  int  store(const char *to,uint32_t length,
54
 
             const CHARSET_INFO * const charset);
55
 
  int  store(double nr);
56
 
  int  store(int64_t nr, bool unsigned_val);
 
53
 
 
54
  int store(const char *to,uint32_t length,
 
55
            const CHARSET_INFO * const charset);
 
56
  int store(double nr);
 
57
  int store(int64_t nr, bool unsigned_val);
 
58
  int store_decimal(const type::Decimal *value);
 
59
 
57
60
  int  reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=ptr[4]=ptr[5]=ptr[6]=ptr[7]=0; return 0; }
58
61
  double val_real(void);
59
62
  int64_t val_int(void);
76
79
  }
77
80
 
78
81
private:
79
 
  bool get_date(type::Time *ltime,uint32_t fuzzydate);
80
 
  bool get_time(type::Time *ltime);
 
82
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
 
83
  bool get_time(type::Time &ltime);
81
84
 
82
85
public:
83
86
  virtual timestamp_auto_set_type get_auto_set_type() const;