MySQL 8.4.3
Source Code Documentation
|
Class representing SET DEFAULT, DROP DEFAULT, RENAME COLUMN, SET VISIBLE and SET INVISIBLE clause in ALTER TABLE statement. More...
#include <sql_alter.h>
Public Types | |
enum class | Type { SET_DEFAULT , DROP_DEFAULT , RENAME_COLUMN , SET_COLUMN_VISIBLE , SET_COLUMN_INVISIBLE } |
Public Member Functions | |
Type | change_type () const |
Type of change requested in ALTER TABLE. More... | |
Alter_column (const char *par_name, Item *literal) | |
Constructor used when altering the field's default value with a literal constant or when dropping a field's default value. More... | |
Alter_column (const char *par_name, Value_generator *gen_def) | |
Constructor used when setting a field's DEFAULT value to an expression. More... | |
Alter_column (const char *old_name, const char *new_name) | |
Constructor used while renaming field name. More... | |
Alter_column (const char *par_name, bool par_is_visible) | |
Constructor used while altering column visibility. More... | |
Public Attributes | |
const char * | name |
The column name being altered. More... | |
Item * | def |
The default value supplied. More... | |
Value_generator * | m_default_val_expr |
The expression to be used to generate the default value. More... | |
const char * | m_new_name |
The new column name. More... | |
Private Attributes | |
Type | m_type |
Class representing SET DEFAULT, DROP DEFAULT, RENAME COLUMN, SET VISIBLE and SET INVISIBLE clause in ALTER TABLE statement.
|
strong |
|
inline |
Constructor used when altering the field's default value with a literal constant or when dropping a field's default value.
|
inline |
Constructor used when setting a field's DEFAULT value to an expression.
|
inline |
Constructor used while renaming field name.
|
inline |
Constructor used while altering column visibility.
|
inline |
Type of change requested in ALTER TABLE.
Item* Alter_column::def |
The default value supplied.
Value_generator* Alter_column::m_default_val_expr |
The expression to be used to generate the default value.
const char* Alter_column::m_new_name |
The new column name.
|
private |
const char* Alter_column::name |
The column name being altered.