| MySQL 5.6.14 Source Code Document
    | 
#include <sql_alter.h>

| Public Types | |
| enum | enum_enable_or_disable { LEAVE_AS_IS, ENABLE, DISABLE } | 
| enum | enum_alter_table_algorithm { ALTER_TABLE_ALGORITHM_DEFAULT, ALTER_TABLE_ALGORITHM_INPLACE, ALTER_TABLE_ALGORITHM_COPY } | 
| enum | enum_alter_table_lock { ALTER_TABLE_LOCK_DEFAULT, ALTER_TABLE_LOCK_NONE, ALTER_TABLE_LOCK_SHARED, ALTER_TABLE_LOCK_EXCLUSIVE } | 
| Public Member Functions | |
| void | reset () | 
| Alter_info (const Alter_info &rhs, MEM_ROOT *mem_root) | |
| bool | set_requested_algorithm (const LEX_STRING *str) | 
| bool | set_requested_lock (const LEX_STRING *str) | 
| Public Attributes | |
| List< Alter_drop > | drop_list | 
| List< Alter_column > | alter_list | 
| List< Key > | key_list | 
| List< Create_field > | create_list | 
| uint | flags | 
| enum_enable_or_disable | keys_onoff | 
| List< char > | partition_names | 
| uint | num_parts | 
| enum_alter_table_algorithm | requested_algorithm | 
| enum_alter_table_lock | requested_lock | 
Data describing the table being created by CREATE TABLE or altered by ALTER TABLE.
Definition at line 29 of file sql_alter.h.
The different values of the ALGORITHM clause. Describes which algorithm to use when altering the table.
Definition at line 133 of file sql_alter.h.
The different values of the LOCK clause. Describes the level of concurrency during ALTER TABLE.
Definition at line 150 of file sql_alter.h.
| Alter_info::Alter_info | ( | const Alter_info & | rhs, | 
| MEM_ROOT * | mem_root | ||
| ) | 
Construct a copy of this object to be used for mysql_alter_table and mysql_create_table.
Historically, these two functions modify their Alter_info arguments. This behaviour breaks re-execution of prepared statements and stored procedures and is compensated by always supplying a copy of Alter_info to these functions.
| rhs | Alter_info to make copy of | 
| mem_root | Mem_root for new Alter_info | 
Definition at line 23 of file sql_alter.cc.
| bool Alter_info::set_requested_algorithm | ( | const LEX_STRING * | str | ) | 
Parses the given string and sets requested_algorithm if the string value matches a supported value. Supported values: INPLACE, COPY, DEFAULT
| str | String containing the supplied value | 
| false | Supported value found, state updated | 
| true | Not supported value, no changes made | 
Definition at line 52 of file sql_alter.cc.
| bool Alter_info::set_requested_lock | ( | const LEX_STRING * | str | ) | 
Parses the given string and sets requested_lock if the string value matches a supported value. Supported values: NONE, SHARED, EXCLUSIVE, DEFAULT
| str | String containing the supplied value | 
| false | Supported value found, state updated | 
| true | Not supported value, no changes made | 
Definition at line 67 of file sql_alter.cc.