| 1 |
--source include/have_ndb.inc |
| 2 |
############## |
| 3 |
# Bug#19390895 CRASH: DBSPJ (LINE: 1299); SIMULATEDBLOCK.CPP |
| 4 |
# |
| 5 |
# SCAN_FRAGREQ signal larger than MAX_SEND_MESSAGE_BYTESIZE (32k) |
| 6 |
# SPJ failed to use fragmented send of large signals. |
| 7 |
|
| 8 |
create table t1 ( |
| 9 |
a int, |
| 10 |
b int not null, |
| 11 |
c1 char(255) CHARSET latin1, |
| 12 |
c2 char(255) CHARSET latin1, |
| 13 |
key k1(b, c1, c2) |
| 14 |
) |
| 15 |
engine = ndb |
| 16 |
comment="NDB_TABLE=PARTITION_BALANCE=FOR_RP_BY_LDM"; |
| 17 |
|
| 18 |
insert into t1(a,b,c1,c2) values |
| 19 |
(0, 0, 0, 0), |
| 20 |
(1, 1, 1, 1), |
| 21 |
(2, 2, 2, 1), |
| 22 |
(3, 3, 3, 3), |
| 23 |
(4, 4, 4, 4), |
| 24 |
(5, 5, 5, 5), |
| 25 |
(6, 6, 6, 6), |
| 26 |
(7, 7, 7, 7), |
| 27 |
(8, 8, 8, 8), |
| 28 |
(9, 9, 9, 9); |
| 29 |
|
| 30 |
insert into t1 select a + 10, b, c1, c2 from t1; |
| 31 |
insert into t1 select a + 20, b, c1, c2 from t1; |
| 32 |
insert into t1 select a + 40, b, c1, c2 from t1; |
| 33 |
insert into t1 select a + 80, b, c1, c2 from t1; |
| 34 |
insert into t1 select a + 160, b, c1, c2 from t1; |
| 35 |
insert into t1 select a + 320, b, c1, c2 from t1; |
| 36 |
insert into t1 select a + 640, b, c1, c2 from t1; |
| 37 |
insert into t1 select a + 1280, b, c1, c2 from t1; |
| 38 |
|
| 39 |
explain |
| 40 |
select * from t1 as x, t1 as y |
| 41 |
where y.b = x.a and y.c1 = x.c1 and y.c2 = x.c1; |
| 42 |
|
| 43 |
select count(*) from t1 as x, t1 as y |
| 44 |
where y.b = x.a and y.c1 = x.c1 and y.c2 = x.c1; |
| 45 |
|
| 46 |
drop table t1; |