mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
cf02f52cc0
- removed some returns on ndb internal error codes, return ndb cause in warnings - moved all errorcode mapping mysqld-ndb to ndberror.c - ndb util thread to discover all ndb tables at startup - ndb util thread to wait for mysqld startup
46 lines
935 B
Text
46 lines
935 B
Text
-- 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);
|
|
show warnings;
|
|
|
|
#
|
|
# 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;
|