summaryrefslogtreecommitdiff
path: root/sql/ha_blackhole.cc
diff options
context:
space:
mode:
authoracurtis@xiphis.org <>2006-05-09 13:31:46 -0700
committeracurtis@xiphis.org <>2006-05-09 13:31:46 -0700
commit47e89f208a25652ec93529eb7dc4944ec5a73659 (patch)
tree1fed1caed61ab2e91c6c91ac94cad060494a7492 /sql/ha_blackhole.cc
parentec4211923320e398b3ebdef4fdde7f55fe93dd55 (diff)
downloadmariadb-git-47e89f208a25652ec93529eb7dc4944ec5a73659.tar.gz
bug#10952
"alter table from MyISAM to MERGE lost data without errors and warnings" Add new handlerton flag which prevent user from altering table storage engine to storage engines which would lose data. Both 'blackhole' and 'merge' are marked with the new flag. Tests included.
Diffstat (limited to 'sql/ha_blackhole.cc')
-rw-r--r--sql/ha_blackhole.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_blackhole.cc b/sql/ha_blackhole.cc
index 2505919af39..7632ed59949 100644
--- a/sql/ha_blackhole.cc
+++ b/sql/ha_blackhole.cc
@@ -47,7 +47,7 @@ handlerton blackhole_hton= {
NULL, /* create_cursor_read_view */
NULL, /* set_cursor_read_view */
NULL, /* close_cursor_read_view */
- HTON_CAN_RECREATE
+ HTON_CAN_RECREATE | HTON_ALTER_CANNOT_CREATE
};
/*****************************************************************************