mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Bug #16385 Partitions: crash when updating a range partitioned NDB table
Bug #17806 Update on NDB table with list partition causes mysqld to core - modified complemented_pk_read to be complemented_read, and handle also hidden key mysql-test/r/ndb_partition_range.result: Bug #16385 Partitions: crash when updating a range partitioned NDB table Bug #17806 Update on NDB table with list partition causes mysqld to core mysql-test/t/ndb_partition_range.test: Bug #16385 Partitions: crash when updating a range partitioned NDB table Bug #17806 Update on NDB table with list partition causes mysqld to core sql/ha_ndbcluster.h: Bug #16385 Partitions: crash when updating a range partitioned NDB table Bug #17806 Update on NDB table with list partition causes mysqld to core
This commit is contained in:
@ -223,3 +223,41 @@ SELECT * FROM t1;
|
||||
id b1 vc bc d f total y t
|
||||
2 NULL NULL NULL NULL NULL NULL NULL NULL
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (
|
||||
a int not null,
|
||||
b int not null,
|
||||
c int not null)
|
||||
partition by list(a)
|
||||
partitions 2
|
||||
(partition x123 values in (1,5,6),
|
||||
partition x234 values in (4,7,8));
|
||||
INSERT into t1 VALUES (5,1,1);
|
||||
select * from t1;
|
||||
a b c
|
||||
5 1 1
|
||||
UPDATE t1 SET a=8 WHERE a=5 AND b=1;
|
||||
select * from t1;
|
||||
a b c
|
||||
8 1 1
|
||||
drop table t1;
|
||||
CREATE TABLE t1 ( f1 INTEGER, f2 char(20)) engine=ndb
|
||||
PARTITION BY RANGE(f1)
|
||||
( PARTITION part1 VALUES LESS THAN (2),
|
||||
PARTITION part2 VALUES LESS THAN (1000));
|
||||
INSERT INTO t1 VALUES(1, '---1---');
|
||||
INSERT INTO t1 VALUES(2, '---2---');
|
||||
select * from t1;
|
||||
f1 f2
|
||||
1 ---1---
|
||||
2 ---2---
|
||||
UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 2;
|
||||
select * from t1;
|
||||
f1 f2
|
||||
1 ---1---
|
||||
6 ---2---
|
||||
UPDATE t1 SET f1 = f1 + 4 WHERE f1 = 1;
|
||||
select * from t1;
|
||||
f1 f2
|
||||
5 ---1---
|
||||
6 ---2---
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user