MySQL 9.1.0
Source Code Documentation
create_field.cc File Reference
#include "sql/create_field.h"
#include "m_string.h"
#include "mysql/strings/dtoa.h"
#include "sql-common/my_decimal.h"
#include "sql/derror.h"
#include "sql/field.h"
#include "sql/item.h"
#include "sql/sql_class.h"
#include "sql_string.h"
#include "template_utils.h"
#include <cmath>
#include <optional>

Functions

bool is_field_for_functional_index (const Create_field *create_field)
 
bool is_hidden_by_system (const Create_field *create_field)
 
bool is_hidden_by_user (const Create_field *create_field)
 

Variables

static constexpr const size_t MAX_BIT_FIELD_LENGTH {64}
 
static constexpr const size_t MAX_DATETIME_COMPRESSED_WIDTH {14}
 YYYYMMDDHHMMSS. More...
 

Function Documentation

◆ is_field_for_functional_index()

bool is_field_for_functional_index ( const Create_field create_field)
Returns
whether or not this field is a hidden column that represents a functional index.

◆ is_hidden_by_system()

bool is_hidden_by_system ( const Create_field create_field)
Return values
trueIf this column is hidden either in the storage engine or SQL layer. Either way, it is completely hidden from the user.
falseOtherwise.

◆ is_hidden_by_user()

bool is_hidden_by_user ( const Create_field create_field)
Return values
trueIf this column is hidden by the user.
falseotherwise.

Variable Documentation

◆ MAX_BIT_FIELD_LENGTH

constexpr const size_t MAX_BIT_FIELD_LENGTH {64}
staticconstexpr

◆ MAX_DATETIME_COMPRESSED_WIDTH

constexpr const size_t MAX_DATETIME_COMPRESSED_WIDTH {14}
staticconstexpr

YYYYMMDDHHMMSS.