Drizzled Public API Documentation

dict_col_struct Struct Reference

#include <dict0mem.h>

List of all members.

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


Member Data Documentation

table column position (starting from 0)

Definition at line 277 of file dict0mem.h.

Referenced by dict_mem_fill_column_struct().

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 259 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().

minimum and maximum length of a character, in bytes; DATA_MBMINMAXLEN(mbminlen,mbmaxlen); mbminlen=DATA_MBMINLEN(mbminmaxlen); mbmaxlen=DATA_MBMINLEN(mbminmaxlen)

Definition at line 268 of file dict0mem.h.

Referenced by innobase_col_to_mysql(), and row_build_index_entry().

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 249 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: