summaryrefslogtreecommitdiff
path: root/mysql-test/t/partition.test
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2012-08-15 13:33:37 +0300
committerMichael Widenius <monty@askmonty.org>2012-08-15 13:33:37 +0300
commitfbe5ac4e24ceaa9f75f52fba62f8c53e172e5c11 (patch)
treecf433e814590fd67c635ac6d72f899311c694ee4 /mysql-test/t/partition.test
parent9c1cc61caf5282747ed6e399e842957b9eee521f (diff)
downloadmariadb-git-fbe5ac4e24ceaa9f75f52fba62f8c53e172e5c11.tar.gz
Fixed MDEV-365 "Got assertion when doing alter table on a partition"
mysql-test/r/partition.result: Added test case mysql-test/t/partition.test: Added test case sql/sql_partition.cc: Do mysql_trans_prepare_alter_copy_data() after all original tables are locked. (We don't want to disable transactions for the original tables, that still may be in the cache) sql/sql_table.cc: Fixed two wrong DBUG_ENTER
Diffstat (limited to 'mysql-test/t/partition.test')
-rw-r--r--mysql-test/t/partition.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index 08c028c8224..ef0d3df6661 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -2476,3 +2476,13 @@ SELECT 1 FROM t1 AS t1_0 JOIN t1 ON t1_0.a LIKE (SELECT 1 FROM t1);
SELECT * FROM vtmp;
DROP VIEW vtmp;
DROP TABLE t1;
+
+--echo #
+--echo # MDEV-365 "Got assertion when doing alter table on a partition"
+--echo #
+
+CREATE TABLE t1 ( i INT ) ENGINE=Aria PARTITION BY HASH(i) PARTITIONS 2;
+INSERT INTO t1 VALUES (1),(2),(2),(3),(4);
+ALTER TABLE t1 ADD PARTITION PARTITIONS 2;
+SELECT * from t1 order by i;
+DROP TABLE t1;