~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/num.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLED_FIELD_NUM_H
22
22
#define DRIZZLED_FIELD_NUM_H
23
23
 
24
 
#include "drizzled/field.h"
 
24
#include <drizzled/field.h>
25
25
 
26
26
namespace drizzled
27
27
{
32
32
  const uint8_t dec;
33
33
  bool decimal_precision;       // Purify cannot handle bit fields & only for decimal type
34
34
  bool unsigned_flag;   // Purify cannot handle bit fields
 
35
 
35
36
  Field_num(unsigned char *ptr_arg,uint32_t len_arg, unsigned char *null_ptr_arg,
36
37
            unsigned char null_bit_arg, utype unireg_check_arg,
37
38
            const char *field_name_arg,
38
39
            uint8_t dec_arg, bool zero_arg, bool unsigned_arg);
 
40
 
39
41
  Item_result result_type () const { return REAL_RESULT; }
 
42
 
40
43
  friend class CreateField;
 
44
 
41
45
  void make_field(SendField *);
 
46
 
42
47
  uint32_t decimals() const { return (uint32_t) dec; }
 
48
 
43
49
  uint32_t size_of() const { return sizeof(*this); }
 
50
 
44
51
  bool eq_def(Field *field);
45
 
  int store_decimal(const my_decimal *);
46
 
  my_decimal *val_decimal(my_decimal *);
 
52
 
 
53
  int store_decimal(const type::Decimal *);
 
54
 
 
55
  type::Decimal *val_decimal(type::Decimal *) const;
 
56
 
47
57
  uint32_t is_equal(CreateField *new_field);
 
58
 
48
59
  int check_int(const CHARSET_INFO * const cs, const char *str, int length,
49
60
                const char *int_end, int error);
 
61
 
50
62
  bool get_int(const CHARSET_INFO * const cs, const char *from, uint32_t len,
51
63
               int64_t *rnd, uint64_t unsigned_max,
52
64
               int64_t signed_min, int64_t signed_max);