MySQL 8.0.39
Source Code Documentation
dtype_t Struct Reference

#include <data0type.h>

Public Member Functions

bool is_virtual () const
 
std::ostream & print (std::ostream &out) const
 

Public Attributes

unsigned prtype: 32
 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 More...
 
unsigned mtype: 8
 main data type More...
 
unsigned len: 16
 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) More...
 
unsigned mbminmaxlen: 5
 minimum and maximum length of a character, in bytes; DATA_MBMINMAXLEN(mbminlen,mbmaxlen); mbminlen=DATA_MBMINLEN(mbminmaxlen); mbmaxlen=DATA_MBMINLEN(mbminmaxlen) More...
 

Member Function Documentation

◆ is_virtual()

bool dtype_t::is_virtual ( ) const
inline

◆ print()

std::ostream & dtype_t::print ( std::ostream &  out) const

Member Data Documentation

◆ len

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)

◆ mbminmaxlen

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)

◆ mtype

unsigned dtype_t::mtype

main data type

◆ prtype

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


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