26 lines
751 B
Plaintext
26 lines
751 B
Plaintext
--source include/have_debug.inc
|
|
|
|
--echo #
|
|
--echo # WL#8960 Partial Fetch and Update of BLOB
|
|
--echo #
|
|
|
|
CREATE TABLE t1 (f1 int, f2 longblob ) engine=innodb;
|
|
insert into t1 values (1, repeat('+', 1048576));
|
|
set debug = '+d,lob_insert_noindex';
|
|
insert into t1 values (2, repeat('~', 1048576));
|
|
set debug = '-d,lob_insert_noindex';
|
|
select f1, right(f2, 40) from t1;
|
|
drop table t1;
|
|
|
|
CREATE TABLE t1 (f1 int, f2 longblob ) engine=innodb;
|
|
insert into t1 values (1, repeat('+', 1048576));
|
|
set debug = '+d,lob_insert_noindex';
|
|
select f1, right(f2, 40) from t1;
|
|
start transaction;
|
|
insert into t1 values (2, repeat('~', 1048576));
|
|
select f1, right(f2, 40) from t1;
|
|
rollback;
|
|
set debug = '-d,lob_insert_noindex';
|
|
select f1, right(f2, 40) from t1;
|
|
drop table t1;
|