~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/microtime.h

  • Committer: Brian Aker
  • Date: 2011-02-20 21:00:32 UTC
  • mfrom: (2181.2.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110220210032-fc9g8qugt0n1yjr6
Brian Aker 2011-02-20 Merge in additional header bits for strerror_r
Brian Aker 2011-02-20 Create CONST on additional Field methods.
Brian Aker 2011-02-19 Further commit const on field.
Brian Aker 2011-02-18 This fixes DEBUG based compiles.
Brian Aker 2011-02-18 Protect all of the val_* methods from modification.

Show diffs side-by-side

added added

removed removed

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