diff options
author | marko@hundin.mysql.fi <> | 2005-04-07 12:16:41 +0300 |
---|---|---|
committer | marko@hundin.mysql.fi <> | 2005-04-07 12:16:41 +0300 |
commit | b5328a7dbc62f7d87d406b7fa334a03dcea6b5ba (patch) | |
tree | 7034173189c0c268893de96cb77f0e5983ac1a94 /sql/handler.h | |
parent | 699c35c80eb0a31983bf09d1515a69456b589da7 (diff) | |
download | mariadb-git-b5328a7dbc62f7d87d406b7fa334a03dcea6b5ba.tar.gz |
InnoDB: Prevent ALTER TABLE ... ENGINE=...
if there are foreign key constraints on the table. (Bug #5574)
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 50ce33b5067..4c31da6a492 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -450,6 +450,8 @@ public: virtual void append_create_info(String *packet) {} virtual char* get_foreign_key_create_info() { return(NULL);} /* gets foreign key create string from InnoDB */ + /* used in ALTER TABLE; 1 if changing storage engine is allowed */ + virtual bool can_switch_engines() { return 1; } /* used in REPLACE; is > 0 if table is referred by a FOREIGN KEY */ virtual uint referenced_by_foreign_key() { return 0;} virtual void init_table_handle_for_HANDLER() |