mirror of
https://github.com/MariaDB/server.git
synced 2025-08-27 13:04:36 +03:00
bugfix in checksum with force varpart
mysql-test/mysql-test-run.pl: bigger needed for running some tests
This commit is contained in:
@@ -2487,7 +2487,7 @@ sub ndbcluster_start_install ($) {
|
||||
else
|
||||
{
|
||||
$ndb_no_ord=32;
|
||||
$ndb_con_op=5000;
|
||||
$ndb_con_op=10000;
|
||||
$ndb_dmem="20M";
|
||||
$ndb_imem="1M";
|
||||
$ndb_pbmem="4M";
|
||||
|
@@ -37,3 +37,29 @@ ROW_FORMAT=DYNAMIC
|
||||
ENGINE=NDB;
|
||||
ForceVarPart: 1
|
||||
DROP TABLE t1;
|
||||
create table t1 (a int auto_increment primary key, b varchar(1000)) engine = ndb;
|
||||
insert into t1(b) values ('0123456789');
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
select count(*) from t1;
|
||||
count(*)
|
||||
1024
|
||||
begin;
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
rollback;
|
||||
select count(*),b from t1 group by b;
|
||||
count(*) b
|
||||
1024 0123456789
|
||||
drop table t1;
|
||||
|
@@ -60,3 +60,27 @@ CREATE TABLE t1
|
||||
ENGINE=NDB;
|
||||
--exec $NDB_TOOLS_DIR/ndb_desc --no-defaults -d test t1 | grep ForceVarPart
|
||||
DROP TABLE t1;
|
||||
|
||||
# test of bug
|
||||
create table t1 (a int auto_increment primary key, b varchar(1000)) engine = ndb;
|
||||
insert into t1(b) values ('0123456789');
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
insert into t1(b) select b from t1;
|
||||
select count(*) from t1;
|
||||
begin;
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
update t1 set b = concat(b,b);
|
||||
rollback;
|
||||
select count(*),b from t1 group by b;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user