| 1 |
# |
| 2 |
# Bug#59410 read uncommitted: unlock row could not find a 3 mode lock on the record |
| 3 |
# |
| 4 |
|
| 5 |
# only interested that the following do not produce something like |
| 6 |
# InnoDB: Error: unlock row could not find a 2 mode lock on the record |
| 7 |
# in the error log |
| 8 |
|
| 9 |
create table `bug59410_1`(`a` int)engine=innodb; |
| 10 |
insert into `bug59410_1` values (1),(2),(3); |
| 11 |
select 1 from `bug59410_1` where `a` <> any ( |
| 12 |
select 1 from `bug59410_1` where `a` <> 1 for update) |
| 13 |
for update; |
| 14 |
drop table bug59410_1; |
| 15 |
|
| 16 |
create table bug59410_2(`a` char(1),`b` int)engine=innodb; |
| 17 |
insert into bug59410_2 values('0',0); |
| 18 |
--source include/turn_off_only_full_group_by.inc |
| 19 |
set transaction isolation level read uncommitted; |
| 20 |
start transaction; |
| 21 |
set @a=(select b from bug59410_2 where |
| 22 |
(select 1 from bug59410_2 where a group by @a=b) |
| 23 |
group by @a:=b); |
| 24 |
--source include/restore_sql_mode_after_turn_off_only_full_group_by.inc |
| 25 |
drop table bug59410_2; |