mariadb/mysql-test/suite/tokudb.rows/r/32m-0.result
Rich Prohaska 8825163905 refs #5545 replace storage_engine with default_storage_engine in tokudb mysql tests
git-svn-id: file:///svn/mysql/tests/mysql-test@48583 c7de825b-a66e-492c-adef-691d508d4ae1
2012-10-04 14:31:31 +00:00

36 lines
1.3 KiB
Text

SET DEFAULT_STORAGE_ENGINE='tokudb';
call mtr.add_suppression("TokuDB.*");
call mtr.add_suppression(".*returned handler error 22");
drop table if exists t;
create table t (id int not null primary key, v longblob not null);
select @@max_allowed_packet into @my_max_allowed_packet;
set global max_allowed_packet=100000000;
insert into t values (1,repeat('a',32*1024*1024));
ERROR HY000: Got error 22 from storage engine
insert into t values (1,repeat('a',32*1024*1024-1));
ERROR HY000: Got error 22 from storage engine
insert into t values (1,repeat('a',32*1024*1024-2));
ERROR HY000: Got error 22 from storage engine
insert into t values (1,repeat('a',32*1024*1024-3));
ERROR HY000: Got error 22 from storage engine
insert into t values (1,repeat('a',32*1024*1024-4));
select id,length(v) from t;
id length(v)
1 33554428
truncate table t;
insert into t values (1,'a'),(2,'b'),(3,'c'),(4,'d'),(5,repeat('e',32*1024*1024-1));
ERROR HY000: Got error 22 from storage engine
select id,length(v) from t;
id length(v)
truncate table t;
insert into t values (1,'a'),(2,'b'),(3,'c'),(4,'d');
insert into t values (5,repeat('e',32*1024*1024-1));
ERROR HY000: Got error 22 from storage engine
select id,length(v) from t;
id length(v)
1 1
2 1
3 1
4 1
set global max_allowed_packet=@my_max_allowed_packet;
drop table t;