summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_partition_key.test
diff options
context:
space:
mode:
authorunknown <pappa@c-8808e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-03-20 14:41:50 -0500
committerunknown <pappa@c-8808e253.1238-1-64736c10.cust.bredbandsbolaget.se>2006-03-20 14:41:50 -0500
commitfd13bf868da2d6f483b0ceeeda6a18d5a2f79c7a (patch)
tree7c6033924ed6ff3437dd77cdfa0331fc6b3f64f3 /mysql-test/t/ndb_partition_key.test
parent35e0de419464e57b6938250d8e7126876339072b (diff)
parent653468b702e5c675da3a271e0020b65e90c105b2 (diff)
downloadmariadb-git-fd13bf868da2d6f483b0ceeeda6a18d5a2f79c7a.tar.gz
Merge mronstrom@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into c-8808e253.1238-1-64736c10.cust.bredbandsbolaget.se:/home/pappa/bug17754 mysql-test/r/partition.result: Auto merged mysql-test/t/partition.test: Auto merged sql/sql_lex.h: Auto merged sql/sql_partition.cc: Auto merged sql/sql_table.cc: Auto merged sql/sql_yacc.yy: Auto merged mysql-test/r/ndb_partition_key.result: manual merge mysql-test/t/ndb_partition_key.test: manual merge
Diffstat (limited to 'mysql-test/t/ndb_partition_key.test')
-rw-r--r--mysql-test/t/ndb_partition_key.test45
1 files changed, 45 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_partition_key.test b/mysql-test/t/ndb_partition_key.test
index 22c84bf132e..d43dc7e49e4 100644
--- a/mysql-test/t/ndb_partition_key.test
+++ b/mysql-test/t/ndb_partition_key.test
@@ -81,6 +81,51 @@ PARTITION BY KEY(a)
drop table t1;
#
+# Bug #17754 Improper handling of removal of partitioning in ALTER TABLE
+# Also added a number of general test cases in the same area
+#
+create table t1 (a int)
+engine=ndb
+partition by key(a)
+(partition p0, partition p1);
+show create table t1;
+
+alter table t1 engine=heap;
+show create table t1;
+
+alter table t1 engine=ndb;
+show create table t1;
+
+alter table t1 engine=heap remove partitioning;
+show create table t1;
+
+alter table t1 engine=ndb
+partition by key(a)
+(partition p0, partition p1 engine = ndb);
+show create table t1;
+
+alter table t1
+partition by key (a)
+(partition p0 engine=ndb, partition p1 engine=ndb);
+show create table t1;
+
+alter table t1 remove partitioning;
+show create table t1;
+
+--error ER_MIX_HANDLER_ERROR
+alter table t1
+partition by key(a)
+(partition p0 engine=ndb, partition p1);
+
+alter table t1
+engine=ndb
+partition by key(a)
+(partition p0 engine=ndb, partition p1 engine = ndb);
+show create table t1;
+
+drop table t1;
+
+#
# BUG 16810 Out of memory when coalesce partition
#
CREATE TABLE t1 (