summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/partition.result8
-rw-r--r--mysql-test/t/partition.test14
2 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/r/partition.result b/mysql-test/r/partition.result
index 025d9f46412..d8cb474fefc 100644
--- a/mysql-test/r/partition.result
+++ b/mysql-test/r/partition.result
@@ -1,5 +1,13 @@
drop table if exists t1;
create table t1 (a int)
+partition by list (a)
+(partition p0 values in (1));
+create procedure pz()
+alter table t1 engine = myisam;
+call pz();
+call pz();
+drop table t1;
+create table t1 (a int)
engine = csv
partition by list (a)
(partition p0 values in (null));
diff --git a/mysql-test/t/partition.test b/mysql-test/t/partition.test
index a7f2e1c0b3e..6658064c094 100644
--- a/mysql-test/t/partition.test
+++ b/mysql-test/t/partition.test
@@ -10,6 +10,20 @@ drop table if exists t1;
--enable_warnings
#
+# Bug 19309 Partitions: Crash if double procedural alter
+#
+create table t1 (a int)
+partition by list (a)
+(partition p0 values in (1));
+
+create procedure pz()
+alter table t1 engine = myisam;
+
+call pz();
+call pz();
+drop table t1;
+
+#
# Bug 19307: CSV engine crashes
#
--error ER_PARTITION_MERGE_ERROR