Drizzled Public API Documentation

dict_col_struct Struct Reference

#include <dict0mem.h>

Public Attributes

unsigned ind:10
unsigned ord_part:1
unsigned mtype:8
unsigned prtype:24
unsigned len:16
unsigned mbminmaxlen:5

Detailed Description

Data structure for a column in a table

Definition at line 239 of file dict0mem.h.

Member Data Documentation

unsigned dict_col_struct::ind

table column position (starting from 0)

Definition at line 273 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 255 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(), and rec_init_offsets_comp_ordinary().

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 264 of file dict0mem.h.

Referenced by innobase_col_to_mysql(), and row_build_index_entry().

unsigned dict_col_struct::ord_part

nonzero if this column appears in the ordering fields of an index

Definition at line 275 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 245 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().


The documentation for this struct was generated from the following file: