MySQL  8.0.25
Source Code Documentation
Type_properties Class Reference

Type properties, used to collect type information for later assignment to an Item object. More...

#include <item.h>

Public Member Functions

 Type_properties (enum_field_types type_arg)
 Constructor for any signed numeric type or date type Defaults are provided for attributes like signedness and max length. More...
 
 Type_properties (enum_field_types type_arg, bool unsigned_arg)
 Constructor for any numeric type, with explicit signedness. More...
 
 Type_properties (enum_field_types type_arg, const CHARSET_INFO *charset)
 Constructor for character type, with explicit character set. More...
 
 Type_properties (Item &item)
 Constructor for Item. More...
 

Public Attributes

const enum_field_types m_type
 
const bool m_unsigned_flag
 
const uint32 m_max_length
 
const DTCollation m_collation
 

Detailed Description

Type properties, used to collect type information for later assignment to an Item object.

The object stores attributes signedness, max length and collation. However, precision and scale (for decimal numbers) and fractional second precision (for time and datetime) are not stored, since any type derived from this object will have default values for these attributes.

Constructor & Destructor Documentation

◆ Type_properties() [1/4]

Type_properties::Type_properties ( enum_field_types  type_arg)
inline

Constructor for any signed numeric type or date type Defaults are provided for attributes like signedness and max length.

◆ Type_properties() [2/4]

Type_properties::Type_properties ( enum_field_types  type_arg,
bool  unsigned_arg 
)
inline

Constructor for any numeric type, with explicit signedness.

◆ Type_properties() [3/4]

Type_properties::Type_properties ( enum_field_types  type_arg,
const CHARSET_INFO charset 
)
inline

Constructor for character type, with explicit character set.

Default length/max length is provided.

◆ Type_properties() [4/4]

Type_properties::Type_properties ( Item item)

Constructor for Item.

Member Data Documentation

◆ m_collation

const DTCollation Type_properties::m_collation

◆ m_max_length

const uint32 Type_properties::m_max_length

◆ m_type

const enum_field_types Type_properties::m_type

◆ m_unsigned_flag

const bool Type_properties::m_unsigned_flag

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