mirror of
https://github.com/MariaDB/server.git
synced 2025-08-31 22:22:30 +03:00
smarter ALTER TABLE - don't copy the table if only comment or default values are changed
sql/handler.cc: do not delete the table in the "unkonwn" handler (makes no sense anyway) sql/handler.h: more HA_CREATE_USED flags sql/sql_lex.h: more ALTER_ flags, no alter_info->is_simple anymore sql/sql_parse.cc: no alter_info->is_simple anymore sql/sql_table.cc: do not rename the table in the "unkonwn" handler (makes no sense anyway) smarter ALTER TABLE - don't copy the table if only comment or default values are changed sql/sql_yacc.yy: specify what ALTER is todo with flags, not alter_info->is_simple sql/unireg.cc: create frm only (but not in the handler) if requested
This commit is contained in:
@@ -785,7 +785,7 @@ bool ha_flush_logs()
|
||||
int ha_delete_table(enum db_type table_type, const char *path)
|
||||
{
|
||||
char tmp_path[FN_REFLEN];
|
||||
handler *file=get_new_handler((TABLE*) 0, table_type);
|
||||
handler *file=(table_type== DB_TYPE_UNKNOWN ? 0 : get_new_handler((TABLE*) 0, table_type));
|
||||
if (!file)
|
||||
return ENOENT;
|
||||
if (lower_case_table_names == 2 && !(file->table_flags() & HA_FILE_BASED))
|
||||
|
Reference in New Issue
Block a user