~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/time.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:24:18 UTC
  • mfrom: (2159.1.1 remove-lint)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172418-vd210j88hiwk8jih
Removed the lint stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                  uint32_t len_arg,
41
41
                  unsigned char *null_ptr_arg,
42
42
                  unsigned char null_bit_arg,
43
 
                  const char *field_name_arg);
44
 
 
 
43
                  const char *field_name_arg,
 
44
                  const CHARSET_INFO * const cs);
45
45
  Time(bool maybe_null_arg,
46
 
                  const char *field_name_arg);
47
 
 
 
46
                  const char *field_name_arg,
 
47
                  const CHARSET_INFO * const cs);
48
48
  enum_field_types type() const { return DRIZZLE_TYPE_TIMESTAMP;}
49
49
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_LONG_INT; }
50
50
  enum Item_result cmp_type () const { return INT_RESULT; }
53
53
  int  store(double nr);
54
54
  int  store(int64_t nr, bool unsigned_val);
55
55
  int  reset(void) { ptr[0]= ptr[1]= ptr[2]= ptr[3]= 0; return 0; }
56
 
  double val_real(void) const;
57
 
  int64_t val_int(void) const;
58
 
  String *val_str(String*,String *) const;
 
56
  double val_real(void);
 
57
  int64_t val_int(void);
 
58
  String *val_str(String*,String *);
59
59
  int cmp(const unsigned char *,const unsigned char *);
60
60
  void sort_string(unsigned char *buff,uint32_t length);
61
61
  uint32_t pack_length() const { return 4; }
64
64
  bool zero_pack() const { return 0; }
65
65
 
66
66
  /* Get TIME field value as seconds since begging of Unix Epoch */
67
 
  long get_timestamp(bool *null_value) const;
 
67
  long get_timestamp(bool *null_value);
68
68
private:
69
 
  bool get_date(type::Time &ltime, uint32_t fuzzydate) const;
70
 
  bool get_time(type::Time &ltime) const;
 
69
  bool get_date(type::Time &ltime,uint32_t fuzzydate);
 
70
  bool get_time(type::Time &ltime);
71
71
 
72
72
public:
73
73
  timestamp_auto_set_type get_auto_set_type() const;
74
74
  static size_t max_string_length();
75
75
  void pack_time(drizzled::Time &arg);
76
 
  void unpack_time(drizzled::Time &arg) const;
77
 
  void unpack_time(int32_t &destination, const unsigned char *source) const;
 
76
  void unpack_time(drizzled::Time &arg);
 
77
  void unpack_time(int32_t &destination, const unsigned char *source);
78
78
};
79
79
 
80
80
} /* namespace field */