33
33
Field_varstring(unsigned char *ptr_arg,
34
34
uint32_t len_arg, uint32_t length_bytes_arg,
35
35
unsigned char *null_ptr_arg, unsigned char null_bit_arg,
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++;
36
enum utype unireg_check_arg, const char *field_name_arg,
37
TABLE_SHARE *share, const CHARSET_INFO * const cs);
44
38
Field_varstring(uint32_t len_arg,bool maybe_null_arg,
45
39
const char *field_name_arg,
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++;
40
TABLE_SHARE *share, const CHARSET_INFO * const cs);
54
42
enum_field_types type() const { return DRIZZLE_TYPE_VARCHAR; }
55
43
enum ha_base_keytype key_type() const;