#include <dict0mem.h>
Public Attributes | |
unsigned | ind:10 |
unsigned | ord_part:1 |
unsigned | mtype:8 |
unsigned | prtype:24 |
unsigned | len:16 |
unsigned | mbminmaxlen:5 |
Data structure for a column in a table
Definition at line 247 of file dict0mem.h.
unsigned dict_col_struct::ind |
table column position
(starting from 0)
Definition at line 281 of file dict0mem.h.
Referenced by dict_mem_fill_column_struct().
unsigned dict_col_struct::len |
length; for MySQL data this
is field->pack_length(), except that for a >= 5.0.3 type true VARCHAR this is the maximum byte length of the string data (in addition to the string, MySQL uses 1 or 2 bytes to store the string length)
Definition at line 263 of file dict0mem.h.
Referenced by cmp_cols_are_equal(), dict_index_calc_min_rec_len(), dict_mem_fill_column_struct(), dtuple_convert_big_rec(), mlog_open_and_write_index(), rec_convert_dtuple_to_rec_comp(), rec_copy_prefix_to_buf(), rec_get_converted_size_comp_prefix(), rec_get_n_extern_new(), rec_get_offsets_reverse(), rec_init_offsets_comp_ordinary(), and row_merge_create_temporary_table().
unsigned dict_col_struct::mbminmaxlen |
minimum and maximum length of a
character, in bytes; DATA_MBMINMAXLEN(mbminlen,mbmaxlen); mbminlen=DATA_MBMINLEN(mbminmaxlen); mbmaxlen=DATA_MBMINLEN(mbminmaxlen)
Definition at line 272 of file dict0mem.h.
Referenced by innobase_col_to_mysql(), and row_build_index_entry().
unsigned dict_col_struct::mtype |
The following are copied from dtype_t,
so that all bit-fields can be packed tightly. main data type
Definition at line 252 of file dict0mem.h.
Referenced by build_template(), calc_row_difference(), cmp_cols_are_equal(), cmp_rec_rec_simple(), cmp_rec_rec_with_match(), dict_mem_fill_column_struct(), dtuple_convert_big_rec(), innobase_col_to_mysql(), innobase_match_index_columns(), mlog_open_and_write_index(), rec_convert_dtuple_to_rec_comp(), rec_copy_prefix_to_buf(), rec_get_converted_size_comp_prefix(), rec_get_n_extern_new(), rec_get_offsets_reverse(), rec_init_offsets_comp_ordinary(), row_merge_create_temporary_table(), row_raw_format(), row_search_max_autoinc(), and row_sel_convert_mysql_key_to_innobase().
unsigned dict_col_struct::ord_part |
nonzero if this column
appears in the ordering fields of an index
Definition at line 283 of file dict0mem.h.
Referenced by dict_index_add_to_cache(), dict_mem_fill_column_struct(), row_build(), row_build_index_entry(), row_upd_changes_some_index_ord_field_binary(), row_upd_replace(), and trx_undo_rec_get_partial_row().
unsigned dict_col_struct::prtype |
precise type; MySQL data
type, charset code, flags to indicate nullability, signedness, whether this is a binary string, whether this is a true VARCHAR where MySQL uses 2 bytes to store the length
Definition at line 253 of file dict0mem.h.
Referenced by build_template(), cmp_cols_are_equal(), cmp_rec_rec_simple(), cmp_rec_rec_with_match(), dict_index_add_col(), dict_index_calc_min_rec_len(), dict_mem_fill_column_struct(), mlog_open_and_write_index(), rec_copy_prefix_to_buf(), rec_get_converted_size_comp_prefix(), row_build_index_entry(), row_raw_format(), and row_search_max_autoinc().