~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/datetime.h

  • Committer: Brian Aker
  • Date: 2008-11-20 00:47:31 UTC
  • mfrom: (589.1.3 devel)
  • Revision ID: brian@tangent.org-20081120004731-lsjndrno3genuun1
Merge from Monty

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
 
24
26
class Field_datetime :public Field_str {
25
27
public:
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)
 
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)
29
32
    :Field_str(ptr_arg, 19, null_ptr_arg, null_bit_arg,
30
 
               unireg_check_arg, field_name_arg, cs)
 
33
               unireg_check_arg, field_name_arg, cs)
31
34
    {}
32
35
  Field_datetime(bool maybe_null_arg, const char *field_name_arg,
33
 
                 const CHARSET_INFO * const cs)
 
36
                 const CHARSET_INFO * const cs)
34
37
    :Field_str((unsigned char*) 0,19, maybe_null_arg ? (unsigned char*) "": 0,0,
35
 
               NONE, field_name_arg, cs) {}
 
38
               NONE, field_name_arg, cs) {}
36
39
  enum_field_types type() const { return DRIZZLE_TYPE_DATETIME;}
37
40
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_ULONGLONG; }
38
41
  enum Item_result cmp_type () const { return INT_RESULT; }