~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/date.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
  {}
59
59
  enum_field_types type() const { return DRIZZLE_TYPE_DATE;}
60
60
  enum_field_types real_type() const { return DRIZZLE_TYPE_DATE; }
61
 
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_UINT24; }
 
61
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONG_INT; }
62
62
  enum Item_result cmp_type () const { return INT_RESULT; }
63
63
  int  store(const char *to,uint32_t length,
64
64
             const CHARSET_INFO * const charset);
65
65
  int  store(double nr);
66
66
  int  store(int64_t nr, bool unsigned_val);
67
 
  int store_time(DRIZZLE_TIME *ltime, enum enum_drizzle_timestamp_type type);
68
 
  int reset(void) { ptr[0]=ptr[1]=ptr[2]=0; return 0; }
 
67
  int store_time(type::Time &ltime, type::timestamp_t type);
 
68
  int reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=0; return 0; }
69
69
  double val_real(void);
70
70
  int64_t val_int(void);
71
71
  String *val_str(String*,String *);
72
72
  int cmp(const unsigned char *,const unsigned char *);
73
73
  void sort_string(unsigned char *buff,uint32_t length);
74
 
  uint32_t pack_length() const { return 3; }
 
74
  uint32_t pack_length() const { return 4; }
75
75
  void sql_type(String &str) const;
76
76
  bool can_be_compared_as_int64_t() const { return true; }
77
77
  bool zero_pack() const { return 1; }
78
 
  bool get_date(DRIZZLE_TIME *ltime,uint32_t fuzzydate);
79
 
  bool get_time(DRIZZLE_TIME *ltime);
 
78
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
 
79
  bool get_time(type::Time &ltime);
80
80
};
81
81
 
82
82
} /* namespace drizzled */