summaryrefslogtreecommitdiff
path: root/mysql-test/t/ndb_partition_error.test
diff options
context:
space:
mode:
authorunknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-07-22 16:39:05 -0400
committerunknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se>2005-07-22 16:39:05 -0400
commit828a7021e782d83d0d96b215b0cd6b2e4e9718b4 (patch)
tree823abafd0172d157b63d439937a899fa1276482d /mysql-test/t/ndb_partition_error.test
parent451cffcf475c0a44d63e5f750300eca0383e7fbd (diff)
downloadmariadb-git-828a7021e782d83d0d96b215b0cd6b2e4e9718b4.tar.gz
Bug #12114 patch
mysql-test/r/ndb_partition_error.result: New test program mysql-test/t/ndb_partition_error.test: New test program storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp: Fixed error handling after CREATE_FRAGMENTATION_REF
Diffstat (limited to 'mysql-test/t/ndb_partition_error.test')
-rw-r--r--mysql-test/t/ndb_partition_error.test45
1 files changed, 45 insertions, 0 deletions
diff --git a/mysql-test/t/ndb_partition_error.test b/mysql-test/t/ndb_partition_error.test
new file mode 100644
index 00000000000..23fb11d7e63
--- /dev/null
+++ b/mysql-test/t/ndb_partition_error.test
@@ -0,0 +1,45 @@
+-- source include/have_ndb.inc
+#--disable_abort_on_error
+#
+# Simple test for the partition storage engine
+# Focuses on range partitioning tests
+#
+#-- source include/have_partition.inc
+
+--disable_warnings
+drop table if exists t1;
+--enable_warnings
+
+#
+# Partition by range, generate node group error
+#
+--error 1005
+CREATE TABLE t1 (
+a int not null,
+b int not null,
+c int not null,
+primary key(a,b),
+index (a))
+engine = ndb
+partition by range (a)
+partitions 3
+(partition x1 values less than (5) nodegroup 12,
+ partition x2 values less than (10) nodegroup 13,
+ partition x3 values less than (20) nodegroup 14);
+
+#
+# Partition by range, create normal valid table
+#
+CREATE TABLE t1 (
+a int not null,
+b int not null,
+c int not null,
+primary key(a))
+engine = ndb
+partition by range (a)
+partitions 3
+(partition x1 values less than (5),
+ partition x2 values less than (10),
+ partition x3 values less than (20));
+
+drop table t1;