mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
InnoDB: Prevent ALTER TABLE ... ENGINE=...
if there are foreign key constraints on the table. (Bug #5574) sql/ha_innodb.cc: Add method can_switch_engines() sql/ha_innodb.h: Add method can_switch_engines() sql/handler.h: Add method can_switch_engines() sql/sql_table.cc: Check handler::can_switch_engines() before switching storage engines
This commit is contained in:
parent
0d17aea729
commit
f7356d7391
4 changed files with 33 additions and 0 deletions
|
|
@ -161,6 +161,7 @@ class ha_innobase: public handler
|
|||
int check(THD* thd, HA_CHECK_OPT* check_opt);
|
||||
char* update_table_comment(const char* comment);
|
||||
char* get_foreign_key_create_info();
|
||||
bool can_switch_engines();
|
||||
uint referenced_by_foreign_key();
|
||||
void free_foreign_key_create_info(char* str);
|
||||
THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue