mariadb/mysql-test/suite/tokudb.rows/t/32m-0.test
Rich Prohaska 56ce3fab33 #4352 test 32m blobs refs[t:4352]
git-svn-id: file:///svn/mysql/tests/mysql-test@38985 c7de825b-a66e-492c-adef-691d508d4ae1
2012-01-18 18:43:34 +00:00

37 lines
No EOL
1 KiB
Text

# verify that trickle loads or bulk loads can not insert values > 32MB
set storage_engine='tokudb';
--disable_warnings
drop table if exists t;
--enable_warnings
create table t (id int not null primary key, v longblob not null);
# find a value that works
--error 1030
insert into t values (1,repeat('a',32*1024*1024));
--error 1030
insert into t values (1,repeat('a',32*1024*1024-1));
--error 1030
insert into t values (1,repeat('a',32*1024*1024-2));
--error 1030
insert into t values (1,repeat('a',32*1024*1024-3));
insert into t values (1,repeat('a',32*1024*1024-4));
select id,length(v) from t;
# the bulk loader should detect the large row and fail
truncate table t;
--error 1030
insert into t values (1,'a'),(2,'b'),(3,'c'),(4,'d'),(5,repeat('e',32*1024*1024-1));
select id,length(v) from t;
# the trickle loader should detect the large row and fail
truncate table t;
insert into t values (1,'a'),(2,'b'),(3,'c'),(4,'d');
--error 1030
insert into t values (5,repeat('e',32*1024*1024-1));
select id,length(v) from t;
drop table t;