|
|
|
@ -199,3 +199,31 @@ ALTER TABLE t1 ADD COLUMN c4 INT AFTER c1; |
|
|
|
SELECT NODEGROUP,PARTITION_NAME FROM information_schema.partitions WHERE |
|
|
|
table_name = "t1"; |
|
|
|
DROP TABLE t1; |
|
|
|
|
|
|
|
# bug#25587 |
|
|
|
|
|
|
|
CREATE TABLE t1 ( |
|
|
|
a tinyint unsigned NOT NULL, |
|
|
|
b bigint(20) unsigned NOT NULL, |
|
|
|
c char(12), |
|
|
|
PRIMARY KEY (a,b) |
|
|
|
) ENGINE ndb DEFAULT CHARSET=latin1 PARTITION BY KEY (a); |
|
|
|
|
|
|
|
insert into t1 values(1,1,'1'), (2,2,'2'), (3,3,'3'), (4,4,'4'), (5,5,'5'); |
|
|
|
select * from t1 where a = 1; |
|
|
|
select * from t1 where a = 2; |
|
|
|
select * from t1 where a = 3; |
|
|
|
select * from t1 where a = 4; |
|
|
|
select * from t1 where a = 5; |
|
|
|
delete from t1 where a = 1; |
|
|
|
select * from t1 order by 1; |
|
|
|
delete from t1 where a = 2; |
|
|
|
select * from t1 order by 1; |
|
|
|
delete from t1 where a = 3; |
|
|
|
select * from t1 order by 1; |
|
|
|
delete from t1 where a = 4; |
|
|
|
select * from t1 order by 1; |
|
|
|
delete from t1 where a = 5; |
|
|
|
select * from t1 order by 1; |
|
|
|
|
|
|
|
drop table t1; |