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
434c60bd
Commit
434c60bd
authored
Feb 14, 2006
by
aivanov@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deleted innodb_unsafe_binlog.test erroneously merged from
the innodb-5.0-ss115 snapshot.
parent
bb1ba4bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
116 deletions
+0
-116
mysql-test/r/innodb_unsafe_binlog.result
mysql-test/r/innodb_unsafe_binlog.result
+0
-48
mysql-test/t/innodb_unsafe_binlog-master.opt
mysql-test/t/innodb_unsafe_binlog-master.opt
+0
-1
mysql-test/t/innodb_unsafe_binlog.test
mysql-test/t/innodb_unsafe_binlog.test
+0
-67
No files found.
mysql-test/r/innodb_unsafe_binlog.result
deleted
100644 → 0
View file @
bb1ba4bc
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;
create table t1 (id int not null, f_id int not null, f int not null,
primary key(id),key(f_id)) engine=innodb;
create table t2 (id int not null,s_id int not null,s varchar(200),
primary key(id),key(s_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.s_id=ml.f_id) where mm.s is null;
select ml.* from t1 as ml left join t2 as mm on (mm.s_id=ml.f_id) where mm.s is null lock in share mode;
id f_id f
drop table t1,t2;
create table t1(a int not null, b int, primary key(a)) engine=innodb;
insert into t1 values(1,1),(2,2),(3,1),(4,2),(5,1),(6,2);
commit;
set autocommit = 0;
select * from t1 lock in share mode;
a b
1 1
2 2
3 1
4 2
5 1
6 2
update t1 set b = 5 where b = 1;
set autocommit = 0;
select * from t1 where a = 2 and b = 2 for update;
ERROR HY000: Lock wait timeout exceeded; try restarting transaction
commit;
commit;
drop table t1;
mysql-test/t/innodb_unsafe_binlog-master.opt
deleted
100644 → 0
View file @
bb1ba4bc
--innodb_locks_unsafe_for_binlog=true
mysql-test/t/innodb_unsafe_binlog.test
deleted
100644 → 0
View file @
bb1ba4bc
--
source
include
/
have_innodb
.
inc
#
# Note that these tests uses a innodb_locks_unsafe_for_binlog option.
#
# Test cases for a bug #15650 DELETE with LEFT JOIN crashes server
#
--
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
;
create
table
t1
(
id
int
not
null
,
f_id
int
not
null
,
f
int
not
null
,
primary
key
(
id
),
key
(
f_id
))
engine
=
innodb
;
create
table
t2
(
id
int
not
null
,
s_id
int
not
null
,
s
varchar
(
200
),
primary
key
(
id
),
key
(
s_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
.
s_id
=
ml
.
f_id
)
where
mm
.
s
is
null
;
select
ml
.*
from
t1
as
ml
left
join
t2
as
mm
on
(
mm
.
s_id
=
ml
.
f_id
)
where
mm
.
s
is
null
lock
in
share
mode
;
drop
table
t1
,
t2
;
#
# Test case for unlock row bug where unlock releases all locks granted for
# a row. Only the latest lock should be released.
#
connect
(
a
,
localhost
,
root
,,);
connect
(
b
,
localhost
,
root
,,);
connection
a
;
create
table
t1
(
a
int
not
null
,
b
int
,
primary
key
(
a
))
engine
=
innodb
;
insert
into
t1
values
(
1
,
1
),(
2
,
2
),(
3
,
1
),(
4
,
2
),(
5
,
1
),(
6
,
2
);
commit
;
set
autocommit
=
0
;
select
*
from
t1
lock
in
share
mode
;
update
t1
set
b
=
5
where
b
=
1
;
connection
b
;
set
autocommit
=
0
;
#
# S-lock to records (2,2),(4,2), and (6,2) should not be released in a update
#
--
error
1205
select
*
from
t1
where
a
=
2
and
b
=
2
for
update
;
connection
a
;
commit
;
connection
b
;
commit
;
drop
table
t1
;
disconnect
a
;
disconnect
b
;
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