mariadb/mysql-test/innodb-zip.result

17 lines
400 B
Text
Raw Normal View History

set global innodb_file_per_table=1;
create table t1(a int not null, b text, index(b(10))) engine=innodb
key_block_size=1;
insert into t1 values (1,1);
commit;
begin;
update t1 set b=repeat('B',100);
select a,left(b,40),b=1 is_equal from t1;
a left(b,40) is_equal
1 1 1
rollback;
select a,left(b,40),b=1 is_equal from t1;
a left(b,40) is_equal
1 1 1
drop table t1;
set global innodb_file_per_table=0;