1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added IF EXISTS to RENAME TABLE and ALTER TABLE

This commit is contained in:
Monty
2019-12-30 13:34:28 +02:00
parent 5f5c63e0fe
commit bff79492c5
17 changed files with 219 additions and 101 deletions

View File

@ -4160,7 +4160,7 @@ mysql_execute_command(THD *thd)
res= mysql_alter_table(thd, &first_table->db, &first_table->table_name,
&create_info, first_table, &alter_info,
0, (ORDER*) 0, 0);
0, (ORDER*) 0, 0, lex->if_exists());
break;
}
#ifdef HAVE_REPLICATION
@ -4272,7 +4272,7 @@ mysql_execute_command(THD *thd)
WSREP_TO_ISOLATION_BEGIN(0, 0, first_table);
if (mysql_rename_tables(thd, first_table, 0))
if (mysql_rename_tables(thd, first_table, 0, lex->if_exists()))
goto error;
break;
}