mirror of
https://github.com/MariaDB/server.git
synced 2025-02-01 19:41:47 +01:00
15 lines
328 B
Text
15 lines
328 B
Text
|
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;
|