mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / suite / ndb / r / ndb_partition_error.result
blobd86dc38218521371e98b004cee6b5565b60e4b61
1 drop table if exists t1;
2 CREATE TABLE t1 (
3 a int not null,
4 b int not null,
5 c int not null,
6 primary key(a,b),
7 index (a))
8 engine = ndb
9 partition by range (a)
10 partitions 3
11 (partition x1 values less than (5) nodegroup 12,
12 partition x2 values less than (10) nodegroup 13,
13 partition x3 values less than (20) nodegroup 14);
14 ERROR HY000: Can't create table 'test.t1' (errno: 140)
15 show warnings;
16 Level   Code    Message
17 Error   1296    Got error 771 'Given NODEGROUP doesn't exist in this cluster' from NDB
18 Error   1005    Can't create table 'test.t1' (errno: 140)
19 CREATE TABLE t1 (
20 a int not null,
21 b int not null,
22 c int not null,
23 primary key(a))
24 engine = ndb
25 partition by range (a)
26 partitions 3
27 (partition x1 values less than (5),
28 partition x2 values less than (10),
29 partition x3 values less than (20));
30 drop table t1;
31 CREATE TABLE t1 (id INT) ENGINE=NDB
32 PARTITION BY LIST(id)
33 (PARTITION p0 VALUES IN (2, 4),
34 PARTITION p1 VALUES IN (42, 142));
35 INSERT INTO t1 VALUES (2);
36 UPDATE t1 SET id=5 WHERE id=2;
37 ERROR HY000: Table has no partition for value 5
38 DROP TABLE t1;
39 create table t1 (a int,b int, c int)
40 engine = ndb
41 partition by list(a)
42 partitions 2
43 (partition x123 values in (11, 12),
44 partition x234 values in (5, 1));
45 insert into t1 values (NULL,1,1);
46 ERROR HY000: Table has no partition for value NULL
47 drop table t1;