~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/datetime.h

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLE_SERVER_FIELD_DATETIME
22
22
#define DRIZZLE_SERVER_FIELD_DATETIME
23
23
 
24
 
#include <drizzled/field/str.h>
25
 
 
26
24
class Field_datetime :public Field_str {
27
25
public:
28
 
  Field_datetime(unsigned char *ptr_arg, unsigned char *null_ptr_arg,
29
 
                 unsigned char null_bit_arg,
30
 
                 enum utype unireg_check_arg, const char *field_name_arg,
31
 
                 const CHARSET_INFO * const cs)
 
26
  Field_datetime(unsigned char *ptr_arg, unsigned char *null_ptr_arg, unsigned char null_bit_arg,
 
27
                 enum utype unireg_check_arg, const char *field_name_arg,
 
28
                 const CHARSET_INFO * const cs)
32
29
    :Field_str(ptr_arg, 19, null_ptr_arg, null_bit_arg,
33
 
               unireg_check_arg, field_name_arg, cs)
 
30
               unireg_check_arg, field_name_arg, cs)
34
31
    {}
35
32
  Field_datetime(bool maybe_null_arg, const char *field_name_arg,
36
 
                 const CHARSET_INFO * const cs)
 
33
                 const CHARSET_INFO * const cs)
37
34
    :Field_str((unsigned char*) 0,19, maybe_null_arg ? (unsigned char*) "": 0,0,
38
 
               NONE, field_name_arg, cs) {}
 
35
               NONE, field_name_arg, cs) {}
39
36
  enum_field_types type() const { return DRIZZLE_TYPE_DATETIME;}
40
37
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
41
38
  enum Item_result cmp_type () const { return INT_RESULT; }