~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.h

  • Committer: Brian Aker
  • Date: 2008-10-06 05:57:49 UTC
  • Revision ID: brian@tangent.org-20081006055749-svg700gciuqi0zu1
Remove all of uchar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
class Field_double :public Field_real {
25
25
public:
26
 
  Field_double(uchar *ptr_arg, uint32_t len_arg, uchar *null_ptr_arg,
27
 
               uchar null_bit_arg,
 
26
  Field_double(unsigned char *ptr_arg, uint32_t len_arg, unsigned char *null_ptr_arg,
 
27
               unsigned char null_bit_arg,
28
28
               enum utype unireg_check_arg, const char *field_name_arg,
29
29
               uint8_t dec_arg,bool zero_arg,bool unsigned_arg)
30
30
    :Field_real(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
33
33
    {}
34
34
  Field_double(uint32_t len_arg, bool maybe_null_arg, const char *field_name_arg,
35
35
               uint8_t dec_arg)
36
 
    :Field_real((uchar*) 0, len_arg, maybe_null_arg ? (uchar*) "" : 0, (uint) 0,
 
36
    :Field_real((unsigned char*) 0, len_arg, maybe_null_arg ? (unsigned char*) "" : 0, (uint) 0,
37
37
                NONE, field_name_arg, dec_arg, 0, 0)
38
38
    {}
39
39
  Field_double(uint32_t len_arg, bool maybe_null_arg, const char *field_name_arg,
40
40
               uint8_t dec_arg, bool not_fixed_arg)
41
 
    :Field_real((uchar*) 0, len_arg, maybe_null_arg ? (uchar*) "" : 0, (uint) 0,
 
41
    :Field_real((unsigned char*) 0, len_arg, maybe_null_arg ? (unsigned char*) "" : 0, (uint) 0,
42
42
                NONE, field_name_arg, dec_arg, 0, 0)
43
43
    {not_fixed= not_fixed_arg; }
44
44
  enum_field_types type() const { return DRIZZLE_TYPE_DOUBLE;}
51
51
  int64_t val_int(void);
52
52
  String *val_str(String*,String *);
53
53
  bool send_binary(Protocol *protocol);
54
 
  int cmp(const uchar *,const uchar *);
55
 
  void sort_string(uchar *buff,uint length);
 
54
  int cmp(const unsigned char *,const unsigned char *);
 
55
  void sort_string(unsigned char *buff,uint length);
56
56
  uint32_t pack_length() const { return sizeof(double); }
57
57
  uint row_pack_length() { return pack_length(); }
58
58
  void sql_type(String &str) const;
59
59
private:
60
 
  int do_save_field_metadata(uchar *first_byte);
 
60
  int do_save_field_metadata(unsigned char *first_byte);
61
61
};
62
62
 
63
63
#endif