~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/long.h

Giant merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLE_SERVER_FIELD_LONG
22
22
#define DRIZZLE_SERVER_FIELD_LONG
23
23
 
24
 
#include "mysql_priv.h"
 
24
#include <drizzled/mysql_priv.h>
25
25
 
26
26
class Field_long :public Field_num {
27
27
public:
39
39
               NONE, field_name_arg,0,0,unsigned_arg)
40
40
    {}
41
41
  enum Item_result result_type () const { return INT_RESULT; }
42
 
  enum_field_types type() const { return MYSQL_TYPE_LONG;}
 
42
  enum_field_types type() const { return DRIZZLE_TYPE_LONG;}
43
43
  enum ha_base_keytype key_type() const
44
44
    { return unsigned_flag ? HA_KEYTYPE_ULONG_INT : HA_KEYTYPE_LONG_INT; }
45
45
  int store(const char *to,uint length,CHARSET_INFO *charset);
56
56
  void sql_type(String &str) const;
57
57
  uint32_t max_display_length() { return MY_INT32_NUM_DECIMAL_DIGITS; }
58
58
  virtual uchar *pack(uchar* to, const uchar *from,
59
 
                      uint max_length __attribute__((__unused__)),
60
 
                      bool low_byte_first __attribute__((__unused__)))
 
59
                      uint max_length __attribute__((unused)),
 
60
                      bool low_byte_first __attribute__((unused)))
61
61
  {
62
62
    int32_t val;
63
63
#ifdef WORDS_BIGENDIAN
77
77
  }
78
78
 
79
79
  virtual const uchar *unpack(uchar* to, const uchar *from,
80
 
                              uint param_data __attribute__((__unused__)),
81
 
                              bool low_byte_first __attribute__((__unused__)))
 
80
                              uint param_data __attribute__((unused)),
 
81
                              bool low_byte_first __attribute__((unused)))
82
82
  {
83
83
    int32_t val;
84
84
#ifdef WORDS_BIGENDIAN