~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/microtime.h

  • Committer: Brian Aker
  • Date: 2011-01-10 02:13:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2069.
  • Revision ID: brian@tangent.org-20110110021314-dye0guuovwz4oi3j
Formattting, etc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  enum_field_types type() const { return DRIZZLE_TYPE_MICROTIME;}
51
51
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; }
52
52
  enum Item_result cmp_type () const { return STRING_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);
57
 
  int store_time(type::Time &ltime, type::timestamp_t t_type);
58
 
 
59
 
  String *val_str(String*,String *) const;
60
 
  double val_real(void) const;
61
 
  int64_t val_int(void) const;
62
 
  type::Decimal *val_decimal(type::Decimal *decimal_value) const;
63
 
 
 
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);
 
57
  double val_real(void);
 
58
  int64_t val_int(void);
 
59
  String *val_str(String*,String *);
64
60
  int cmp(const unsigned char *,const unsigned char *);
65
61
  void sort_string(unsigned char *buff,uint32_t length);
66
62
  uint32_t pack_length() const { return 12; }
70
66
  void set_time();
71
67
 
72
68
  /* Get TIMESTAMP field value as seconds since begging of Unix Microtime */
73
 
  long get_timestamp(bool *null_value) const;
 
69
  long get_timestamp(bool *null_value);
74
70
 
75
71
private:
76
 
  bool get_date(type::Time &ltime,uint32_t fuzzydate) const;
77
 
  bool get_time(type::Time &ltime) const;
 
72
  bool get_date(type::Time *ltime,uint32_t fuzzydate);
 
73
  bool get_time(type::Time *ltime);
78
74
 
79
75
public:
80
76
  static size_t max_string_length()