Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2e027889
Commit
2e027889
authored
Apr 05, 2011
by
Vasil Dimov
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql-5.1-innodb -> mysql-5.5-innodb
parents
426427fd
bdc15bce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/suite/innodb/r/innodb_bug59410.result
mysql-test/suite/innodb/r/innodb_bug59410.result
+17
-0
mysql-test/suite/innodb/t/innodb_bug59410.test
mysql-test/suite/innodb/t/innodb_bug59410.test
+24
-0
No files found.
mysql-test/suite/innodb/r/innodb_bug59410.result
0 → 100644
View file @
2e027889
create table `bug59410_1`(`a` int)engine=innodb;
insert into `bug59410_1` values (1),(2),(3);
select 1 from `bug59410_1` where `a` <> any (
select 1 from `bug59410_1` where `a` <> 1 for update)
for update;
1
1
1
drop table bug59410_1;
create table bug59410_2(`a` char(1),`b` int)engine=innodb;
insert into bug59410_2 values('0',0);
set transaction isolation level read uncommitted;
start transaction;
set @a=(select b from bug59410_2 where
(select 1 from bug59410_2 where a group by @a=b)
group by @a:=b);
drop table bug59410_2;
mysql-test/suite/innodb/t/innodb_bug59410.test
0 → 100644
View file @
2e027889
#
# Bug#59410 read uncommitted: unlock row could not find a 3 mode lock on the record
#
--
source
include
/
have_innodb
.
inc
# only interested that the following do not produce something like
# InnoDB: Error: unlock row could not find a 2 mode lock on the record
# in the error log
create
table
`bug59410_1`
(
`a`
int
)
engine
=
innodb
;
insert
into
`bug59410_1`
values
(
1
),(
2
),(
3
);
select
1
from
`bug59410_1`
where
`a`
<>
any
(
select
1
from
`bug59410_1`
where
`a`
<>
1
for
update
)
for
update
;
drop
table
bug59410_1
;
create
table
bug59410_2
(
`a`
char
(
1
),
`b`
int
)
engine
=
innodb
;
insert
into
bug59410_2
values
(
'0'
,
0
);
set
transaction
isolation
level
read
uncommitted
;
start
transaction
;
set
@
a
=
(
select
b
from
bug59410_2
where
(
select
1
from
bug59410_2
where
a
group
by
@
a
=
b
)
group
by
@
a
:=
b
);
drop
table
bug59410_2
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment