~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/microtime.h

edit

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
            const CHARSET_INFO * const charset);
55
55
  int store(double nr);
56
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
 
 
 
57
  int store_time(type::Time *ltime, enum enum_drizzle_timestamp_type t_type);
 
58
 
 
59
  double val_real(void);
 
60
  int64_t val_int(void);
 
61
  String *val_str(String*,String *);
64
62
  int cmp(const unsigned char *,const unsigned char *);
65
63
  void sort_string(unsigned char *buff,uint32_t length);
66
64
  uint32_t pack_length() const { return 12; }
70
68
  void set_time();
71
69
 
72
70
  /* Get TIMESTAMP field value as seconds since begging of Unix Microtime */
73
 
  long get_timestamp(bool *null_value) const;
 
71
  long get_timestamp(bool *null_value);
74
72
 
75
73
private:
76
 
  bool get_date(type::Time &ltime,uint32_t fuzzydate) const;
77
 
  bool get_time(type::Time &ltime) const;
 
74
  bool get_date(type::Time *ltime,uint32_t fuzzydate);
 
75
  bool get_time(type::Time *ltime);
78
76
 
79
77
public:
80
78
  static size_t max_string_length()