36
33
Field_varstring(unsigned char *ptr_arg,
37
34
uint32_t len_arg, uint32_t length_bytes_arg,
38
35
unsigned char *null_ptr_arg, unsigned char null_bit_arg,
39
enum utype unireg_check_arg, const char *field_name_arg,
40
TABLE_SHARE *share, const CHARSET_INFO * const cs);
36
enum utype unireg_check_arg, const char *field_name_arg,
37
TABLE_SHARE *share, const CHARSET_INFO * const cs)
38
:Field_longstr(ptr_arg, len_arg, null_ptr_arg, null_bit_arg,
39
unireg_check_arg, field_name_arg, cs),
40
length_bytes(length_bytes_arg)
42
share->varchar_fields++;
41
44
Field_varstring(uint32_t len_arg,bool maybe_null_arg,
42
45
const char *field_name_arg,
43
TABLE_SHARE *share, const CHARSET_INFO * const cs);
46
TABLE_SHARE *share, const CHARSET_INFO * const cs)
47
:Field_longstr((unsigned char*) 0,len_arg, maybe_null_arg ? (unsigned char*) "": 0, 0,
48
NONE, field_name_arg, cs),
49
length_bytes(len_arg < 256 ? 1 :2)
51
share->varchar_fields++;
45
54
enum_field_types type() const { return DRIZZLE_TYPE_VARCHAR; }
46
55
enum ha_base_keytype key_type() const;
69
78
void sort_string(unsigned char *buff,uint32_t length);
70
79
uint32_t get_key_image(unsigned char *buff,uint32_t length, imagetype type);
71
uint32_t get_key_image(std::basic_string <unsigned char> &buff,
72
uint32_t length, imagetype type);
73
80
void set_key_image(const unsigned char *buff,uint32_t length);
74
81
void sql_type(String &str) const;
75
82
virtual unsigned char *pack(unsigned char *to, const unsigned char *from,