~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/int32.h

  • Committer: Mark Atwood
  • Date: 2012-01-04 16:59:32 UTC
  • mfrom: (2478.2.3 real-key-use-catalog)
  • Revision ID: me@mark.atwood.name-20120104165932-cm0xqs4by0u3p4cy
mergeĀ lp:~stewart/drizzle/key-use-catalog

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_INT32_H
22
 
#define DRIZZLED_FIELD_INT32_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/field/num.h>
25
24
 
58
57
  enum_field_types type() const { return DRIZZLE_TYPE_LONG;}
59
58
  enum ha_base_keytype key_type() const
60
59
  { return unsigned_flag ? HA_KEYTYPE_ULONG_INT : HA_KEYTYPE_LONG_INT; }
61
 
  int store(const char *to,uint32_t length, const CHARSET_INFO * const charset);
 
60
  int store(const char *to,uint32_t length, const charset_info_st * const charset);
62
61
  int store(double nr);
63
62
  int store(int64_t nr, bool unsigned_val);
64
63
  int reset(void) { ptr[0]=ptr[1]=ptr[2]=ptr[3]=0; return 0; }
68
67
  int cmp(const unsigned char *,const unsigned char *);
69
68
  void sort_string(unsigned char *buff,uint32_t length);
70
69
  uint32_t pack_length() const { return 4; }
71
 
  void sql_type(String &str) const;
72
70
  uint32_t max_display_length() { return MY_INT32_NUM_DECIMAL_DIGITS; }
73
71
  virtual unsigned char *pack(unsigned char* to, const unsigned char *from,
74
72
                              uint32_t max_length,
82
80
} /* namespace field */
83
81
} /* namespace drizzled */
84
82
 
85
 
#endif /* DRIZZLED_FIELD_INT32_H */
86
83