summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-06-15 14:03:17 -0400
committerunknown <mikael@c-0409e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-06-15 14:03:17 -0400
commitae90c20278270d75bc43be0817d173916e44095b (patch)
treef9cb352752a7ed2c6e38d40d4dddb99a28e42829 /mysql-test/t
parent23e20da872ad1341947bcecdec66fb6be3538eda (diff)
downloadmariadb-git-ae90c20278270d75bc43be0817d173916e44095b.tar.gz
BUG#19309: Crash if double procedural alter
mysql-test/r/partition.result: New test case mysql-test/t/partition.test: New test case sql/sql_table.cc: Added new routine to make copy of create_info struct. This struct is manipulated during alter table and create table but needs to remain the same for repeated execution in stored procedures or prepared statements.
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/partition.test14
1 files changed, 14 insertions, 0 deletions
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