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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0629c3ed
Commit
0629c3ed
authored
Dec 15, 2005
by
jan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port r100 from branches/5.0 to trunk.
parent
0809de5d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
4 deletions
+47
-4
mysql-test/innodb_unsafe_binlog-master.opt
mysql-test/innodb_unsafe_binlog-master.opt
+1
-0
mysql-test/innodb_unsafe_binlog.result
mysql-test/innodb_unsafe_binlog.result
+16
-0
mysql-test/innodb_unsafe_binlog.test
mysql-test/innodb_unsafe_binlog.test
+26
-0
row/row0sel.c
row/row0sel.c
+4
-4
No files found.
mysql-test/innodb_unsafe_binlog-master.opt
0 → 100644
View file @
0629c3ed
--innodb_locks_unsafe_for_binlog=true
mysql-test/innodb_unsafe_binlog.result
0 → 100644
View file @
0629c3ed
drop table if exists t1,t2;
create table t1 (id int not null, f_id int not null, f int not null,
primary key(f_id, id)) engine=innodb;
create table t2 (id int not null,s_id int not null,s varchar(200),
primary key(id)) engine=innodb;
INSERT INTO t1 VALUES (8, 1, 3);
INSERT INTO t1 VALUES (1, 2, 1);
INSERT INTO t2 VALUES (1, 0, '');
INSERT INTO t2 VALUES (8, 1, '');
commit;
DELETE ml.* FROM t1 AS ml LEFT JOIN t2 AS mm ON (mm.id=ml.id)
WHERE mm.id IS NULL;
select ml.* from t1 as ml left join t2 as mm on (mm.id=ml.id)
where mm.id is null lock in share mode;
id f_id f
drop table t1,t2;
mysql-test/innodb_unsafe_binlog.test
0 → 100644
View file @
0629c3ed
--
source
include
/
have_innodb
.
inc
#
# Note that these test work only on 5.0 because these test need
# innodb_locks_unsafe_for_binlog option implemented.
#
#
# Test cases for a bug #15650
#
--
disable_warnings
drop
table
if
exists
t1
,
t2
;
--
enable_warnings
create
table
t1
(
id
int
not
null
,
f_id
int
not
null
,
f
int
not
null
,
primary
key
(
f_id
,
id
))
engine
=
innodb
;
create
table
t2
(
id
int
not
null
,
s_id
int
not
null
,
s
varchar
(
200
),
primary
key
(
id
))
engine
=
innodb
;
INSERT
INTO
t1
VALUES
(
8
,
1
,
3
);
INSERT
INTO
t1
VALUES
(
1
,
2
,
1
);
INSERT
INTO
t2
VALUES
(
1
,
0
,
''
);
INSERT
INTO
t2
VALUES
(
8
,
1
,
''
);
commit
;
DELETE
ml
.*
FROM
t1
AS
ml
LEFT
JOIN
t2
AS
mm
ON
(
mm
.
id
=
ml
.
id
)
WHERE
mm
.
id
IS
NULL
;
select
ml
.*
from
t1
as
ml
left
join
t2
as
mm
on
(
mm
.
id
=
ml
.
id
)
where
mm
.
id
is
null
lock
in
share
mode
;
drop
table
t1
,
t2
;
row/row0sel.c
View file @
0629c3ed
...
...
@@ -3972,12 +3972,12 @@ got_row:
/* We have an optimization to save CPU time: if this is a consistent
read on a unique condition on the clustered index, then we do not
store the pcur position, because any fetch next or prev will anyway
return 'end of file'.
An exception is the MySQL HANDLER command
where the user can move the cursor with PREV or NEXT even after
a unique search. */
return 'end of file'.
Exceptions are locking reads and the MySQL
HANDLER command where the user can move the cursor with PREV or NEXT
even after
a unique search. */
if
(
!
unique_search_from_clust_index
||
prebuilt
->
select_lock_type
==
LOCK_X
||
prebuilt
->
select_lock_type
!=
LOCK_NONE
||
prebuilt
->
used_in_HANDLER
)
{
/* Inside an update always store the cursor position */
...
...
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