summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.h
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-04-07 12:16:41 +0300
committerunknown <marko@hundin.mysql.fi>2005-04-07 12:16:41 +0300
commitf7356d73910f3df3dedf99d2fafd6413cdb6d33d (patch)
tree7034173189c0c268893de96cb77f0e5983ac1a94 /sql/ha_innodb.h
parent0d17aea729e9f33071eee20fbc0b91fd002ca9bb (diff)
downloadmariadb-git-f7356d73910f3df3dedf99d2fafd6413cdb6d33d.tar.gz
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
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r--sql/ha_innodb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h
index f10785b695d..edf428669d8 100644
--- a/sql/ha_innodb.h
+++ b/sql/ha_innodb.h
@@ -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,