MySQL 8.4.2
Source Code Documentation
dd_table_share.h File Reference
#include <sys/types.h>
#include "field_types.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysql/strings/m_ctype.h"
#include "sql/dd/object_id.h"

Go to the source code of this file.

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 

Functions

bool open_table_def (THD *thd, TABLE_SHARE *share, const dd::Table &table_def)
 Read the table definition from the data-dictionary. More...
 
bool open_table_def_suppress_invalid_meta_data (THD *thd, TABLE_SHARE *share, const dd::Table &table_def)
 Read the table definition from the data-dictionary. More...
 
enum_field_types dd_get_old_field_type (dd::enum_column_types type)
 
static CHARSET_INFOdd_get_mysql_charset (dd::Object_id dd_cs_id)
 
bool is_suitable_for_primary_key (KEY_PART_INFO *key_part, Field *table_field)
 Check if the given key_part is suitable to be promoted as part of primary key. More...
 

Function Documentation

◆ dd_get_mysql_charset()

static CHARSET_INFO * dd_get_mysql_charset ( dd::Object_id  dd_cs_id)
inlinestatic

◆ dd_get_old_field_type()

enum_field_types dd_get_old_field_type ( dd::enum_column_types  type)

◆ is_suitable_for_primary_key()

bool is_suitable_for_primary_key ( KEY_PART_INFO key_part,
Field table_field 
)

Check if the given key_part is suitable to be promoted as part of primary key.

Parameters
key_part- pointer to KEY_PART_INTO which we are checking.
table_field- Pointer to Field of column used by key_part.
Returns
true - Is suitable for primary key. false - if not.

◆ open_table_def()

bool open_table_def ( THD thd,
TABLE_SHARE share,
const dd::Table table_def 
)

Read the table definition from the data-dictionary.

Parameters
thdThread handler
shareFill this with table definition
table_defA data-dictionary Table-object describing table to be used for opening, instead of reading information from DD.
Note
This function is called when the table definition is not cached in table_def_cache. The data is returned in 'share', which is allocated by alloc_table_share().. The code assumes that share is initialized.
Returns
false OK true Error

◆ open_table_def_suppress_invalid_meta_data()

bool open_table_def_suppress_invalid_meta_data ( THD thd,
TABLE_SHARE share,
const dd::Table table_def 
)

Read the table definition from the data-dictionary.

Parameters
thdThread handler
shareFill this with table definition
table_defA data-dictionary Table-object describing table to be used for opening.
Note
This function is called from InnoDB, and will suppress errors due to: Invalid collations. Missing FTS parser.
Returns
false OK true Error