|
My Project
|
#include <sql_alter.h>
Public Member Functions | |
| Alter_table_ctx (THD *thd, TABLE_LIST *table_list, uint tables_opened_arg, char *new_db_arg, char *new_name_arg) | |
| bool | is_database_changed () const |
| bool | is_table_renamed () const |
| const char * | get_new_filename () const |
| const char * | get_path () const |
| const char * | get_new_path () const |
| const char * | get_tmp_path () const |
| void | set_fk_error_if_delete_row (FOREIGN_KEY_INFO *fk) |
Public Attributes | |
| Create_field * | datetime_field |
| bool | error_if_not_empty |
| uint | tables_opened |
| char * | db |
| char * | table_name |
| char * | alias |
| char * | new_db |
| char * | new_name |
| char * | new_alias |
| char | tmp_name [80] |
| bool | fk_error_if_delete_row |
| const char * | fk_error_id |
| const char * | fk_error_table |
Runtime context for ALTER TABLE.
| const char* Alter_table_ctx::get_new_filename | ( | ) | const [inline] |
| const char* Alter_table_ctx::get_new_path | ( | ) | const [inline] |
| const char* Alter_table_ctx::get_path | ( | ) | const [inline] |
| const char* Alter_table_ctx::get_tmp_path | ( | ) | const [inline] |
| bool Alter_table_ctx::is_database_changed | ( | ) | const [inline] |
| bool Alter_table_ctx::is_table_renamed | ( | ) | const [inline] |
| void Alter_table_ctx::set_fk_error_if_delete_row | ( | FOREIGN_KEY_INFO * | fk | ) | [inline] |
Mark ALTER TABLE as needing to produce foreign key error if it deletes a row from the table being changed.
| const char* Alter_table_ctx::fk_error_id |
Name of foreign key for the above error.
Indicates that if a row is deleted during copying of data from old version of table to the new version ER_FK_CANNOT_DELETE_PARENT error should be emitted.
| const char* Alter_table_ctx::fk_error_table |
Name of table for the above error.
1.7.6.1