summaryrefslogtreecommitdiff
path: root/mysql-test/r/partition.result
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/r/partition.result
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/r/partition.result')
-rw-r--r--mysql-test/r/partition.result14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/r/partition.result b/mysql-test/r/partition.result
index 431c5dda116..40586b8d54b 100644
--- a/mysql-test/r/partition.result
+++ b/mysql-test/r/partition.result
@@ -2473,3 +2473,17 @@ SELECT * FROM vtmp;
1
DROP VIEW vtmp;
DROP TABLE t1;
+#
+# MDEV-365 "Got assertion when doing alter table on a partition"
+#
+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;
+i
+1
+2
+2
+3
+4
+DROP TABLE t1;