MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dtype_t Struct Reference

Public Attributes

unsigned prtype:32
unsigned mtype:8
unsigned len:16
unsigned mbminmaxlen:5

Detailed Description

Definition at line 487 of file data0type.h.

Member Data Documentation

unsigned dtype_t::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 499 of file data0type.h.

unsigned dtype_t::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 508 of file data0type.h.

unsigned dtype_t::mtype

main data type

Definition at line 495 of file data0type.h.

unsigned dtype_t::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 488 of file data0type.h.


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