summaryrefslogtreecommitdiff
path: root/mysql-test/t/alter_table.test
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2005-08-29 21:00:43 +0200
committerunknown <andrey@lmy004.>2005-08-29 21:00:43 +0200
commit04af59a36c1a18d153a224970732acd6f8f525c8 (patch)
treecac93813b16612fffd11314de31e81b3209b9a82 /mysql-test/t/alter_table.test
parent901075ac22155df18dc908f76a0bcf6ec96f0fa3 (diff)
downloadmariadb-git-04af59a36c1a18d153a224970732acd6f8f525c8.tar.gz
fix for bug 12207 (alter table discard tablespace on MyISAM table
causes ERROR 2013). (all-in-one approved patch) mysql-test/r/alter_table.result: result for test for bug #12207 (alter table discard database works on mysiam and causes error 2013) mysql-test/t/alter_table.test: test for bug #12207 (alter table discard tablescpae on MyISAM table causes ERROR 2013) sql/sql_table.cc: send all error message to table->file->print_error() thus not missing handing of some (like engine not supported). fix for bug #12207 (alter table discard tablespace on MyISAM table causes ERROR 2013)
Diffstat (limited to 'mysql-test/t/alter_table.test')
-rw-r--r--mysql-test/t/alter_table.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/alter_table.test b/mysql-test/t/alter_table.test
index a237b21f403..003662fc956 100644
--- a/mysql-test/t/alter_table.test
+++ b/mysql-test/t/alter_table.test
@@ -338,6 +338,14 @@ alter table t1 drop key a;
drop table t1;
#
+# BUG 12207 alter table ... discard table space on MyISAM table causes ERROR 2013 (HY000)
+#
+CREATE TABLE T12207(a int) ENGINE=MYISAM;
+--error 1031
+ALTER TABLE T12207 DISCARD TABLESPACE;
+DROP TABLE T12207;
+
+#
# Bug #6479 ALTER TABLE ... changing charset fails for TEXT columns
#
# The column's character set was changed but the actual data was not