~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/int32.h

  • Committer: Monty Taylor
  • Date: 2011-02-13 17:26:39 UTC
  • mfrom: (2157.2.2 give-in-to-pkg-config)
  • mto: This revision was merged to the branch mainline in revision 2166.
  • Revision ID: mordred@inaugust.com-20110213172639-nhy7i72sfhoq13ms
Merged in pkg-config fixes.

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