~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/timestamp.h

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_FIELD_TIMESTAMP_H
22
 
#define DRIZZLED_FIELD_TIMESTAMP_H
 
21
#ifndef DRIZZLE_SERVER_FIELD_TIMESTAMP
 
22
#define DRIZZLE_SERVER_FIELD_TIMESTAMP
23
23
 
24
24
#include <drizzled/field/str.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
class TableShare;
30
27
typedef struct charset_info_st CHARSET_INFO;
31
28
 
36
33
  using Field::val_str;
37
34
  using Field::cmp;
38
35
  using Field::store;
39
 
  Field_timestamp(unsigned char *ptr_arg,
40
 
                  uint32_t len_arg,
41
 
                  unsigned char *null_ptr_arg,
42
 
                  unsigned char null_bit_arg,
43
 
                  enum utype unireg_check_arg,
44
 
                  const char *field_name_arg,
45
 
                  TableShare *share,
46
 
                  const CHARSET_INFO * const cs);
47
 
  Field_timestamp(bool maybe_null_arg,
48
 
                  const char *field_name_arg,
 
36
  Field_timestamp(unsigned char *ptr_arg, uint32_t len_arg,
 
37
                  unsigned char *null_ptr_arg, unsigned char null_bit_arg,
 
38
                  enum utype unireg_check_arg, const char *field_name_arg,
 
39
                  TableShare *share, const CHARSET_INFO * const cs);
 
40
  Field_timestamp(bool maybe_null_arg, const char *field_name_arg,
49
41
                  const CHARSET_INFO * const cs);
50
42
  enum_field_types type() const { return DRIZZLE_TYPE_TIMESTAMP;}
51
43
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONG_INT; }
75
67
  timestamp_auto_set_type get_auto_set_type() const;
76
68
};
77
69
 
78
 
} /* namespace drizzled */
79
 
 
80
 
#endif /* DRIZZLED_FIELD_TIMESTAMP_H */
 
70
#endif
81
71