MySQL 9.1.0
Source Code Documentation
|
Runtime context for ALTER TABLE. More...
#include <sql_alter.h>
Public Types | |
typedef uint | error_if_not_empty_mask |
Public Member Functions | |
Alter_table_ctx () | |
Alter_table_ctx (THD *thd, Table_ref *table_list, uint tables_opened_arg, const char *new_db_arg, const char *new_name_arg) | |
~Alter_table_ctx () | |
bool | is_database_changed () const |
bool | is_table_name_changed () const |
bool | is_table_renamed () const |
const char * | get_path () const |
const char * | get_tmp_path () const |
Public Attributes | |
Create_field * | datetime_field |
error_if_not_empty_mask | error_if_not_empty |
uint | tables_opened |
const char * | db |
const char * | table_name |
const char * | alias |
const char * | new_db |
const char * | new_name |
const char * | new_alias |
char | tmp_name [80] |
FOREIGN_KEY * | fk_info |
uint | fk_count |
uint | fk_max_generated_name_number |
Maximum number component used by generated foreign key names in the old version of table. More... | |
MDL_request | target_mdl_request |
Metadata lock request on table's new name when this name or database are changed. More... | |
MDL_request | target_db_mdl_request |
Metadata lock request on table's new database if it is changed. More... | |
Static Public Attributes | |
static const error_if_not_empty_mask | DATETIME_WITHOUT_DEFAULT = 1 << 0 |
static const error_if_not_empty_mask | GEOMETRY_WITHOUT_DEFAULT = 1 << 1 |
Private Member Functions | |
Alter_table_ctx & | operator= (const Alter_table_ctx &rhs) |
Alter_table_ctx (const Alter_table_ctx &rhs) | |
Private Attributes | |
char | new_filename [FN_REFLEN+1] |
char | new_alias_buff [FN_REFLEN+1] |
char | path [FN_REFLEN+1] |
char | new_path [FN_REFLEN+1] |
char | tmp_path [FN_REFLEN+1] |
bool | tmp_table |
Indicates that we are altering temporary table. More... | |
Runtime context for ALTER TABLE.
typedef uint Alter_table_ctx::error_if_not_empty_mask |
Alter_table_ctx::Alter_table_ctx | ( | ) |
Alter_table_ctx::Alter_table_ctx | ( | THD * | thd, |
Table_ref * | table_list, | ||
uint | tables_opened_arg, | ||
const char * | new_db_arg, | ||
const char * | new_name_arg | ||
) |
|
default |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
const char* Alter_table_ctx::alias |
Create_field* Alter_table_ctx::datetime_field |
|
static |
const char* Alter_table_ctx::db |
error_if_not_empty_mask Alter_table_ctx::error_if_not_empty |
uint Alter_table_ctx::fk_count |
FOREIGN_KEY* Alter_table_ctx::fk_info |
uint Alter_table_ctx::fk_max_generated_name_number |
Maximum number component used by generated foreign key names in the old version of table.
|
static |
const char* Alter_table_ctx::new_alias |
|
private |
const char* Alter_table_ctx::new_db |
|
private |
const char* Alter_table_ctx::new_name |
|
private |
|
private |
const char* Alter_table_ctx::table_name |
uint Alter_table_ctx::tables_opened |
MDL_request Alter_table_ctx::target_db_mdl_request |
Metadata lock request on table's new database if it is changed.
MDL_request Alter_table_ctx::target_mdl_request |
Metadata lock request on table's new name when this name or database are changed.
char Alter_table_ctx::tmp_name[80] |
|
private |
|
private |
Indicates that we are altering temporary table.
Used only in asserts.