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
7f41516f
Commit
7f41516f
authored
Sep 13, 2010
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#629684: Unreachable code in multi_range_read.cc in maria-5.3-dsmrr-cpk
- More test coverage
parent
188de43d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
mysql-test/r/myisam_mrr.result
mysql-test/r/myisam_mrr.result
+23
-0
mysql-test/t/myisam_mrr.test
mysql-test/t/myisam_mrr.test
+16
-0
No files found.
mysql-test/r/myisam_mrr.result
View file @
7f41516f
...
@@ -413,4 +413,27 @@ explain select * from t1 where a < 20;
...
@@ -413,4 +413,27 @@ explain select * from t1 where a < 20;
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range a a 5 NULL 20 Using index condition; Using MRR
1 SIMPLE t1 range a a 5 NULL 20 Using index condition; Using MRR
set optimizer_switch=@save_optimizer_switch;
set optimizer_switch=@save_optimizer_switch;
#
# BUG#629684: Unreachable code in multi_range_read.cc in maria-5.3-dsmrr-cpk
#
delete from t0 where a > 2;
insert into t0 values (NULL),(NULL);
insert into t1 values (NULL, 1234), (NULL, 5678);
set @save_join_cache_level=@@join_cache_level;
set @@join_cache_level=6;
explain
select * from t0, t1 where t0.a<=>t1.a;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t0 ALL NULL NULL NULL NULL 5
1 SIMPLE t1 ref a a 5 test.t0.a 1 Using index condition(BKA); Using join buffer
select * from t0, t1 where t0.a<=>t1.a;
a a b
0 0 0
1 1 1
2 2 2
NULL NULL 1234
NULL NULL 1234
NULL NULL 5678
NULL NULL 5678
set @@join_cache_level=@save_join_cache_level;
drop table t0, t1;
drop table t0, t1;
mysql-test/t/myisam_mrr.test
View file @
7f41516f
...
@@ -123,4 +123,20 @@ explain select * from t1 where a < 20;
...
@@ -123,4 +123,20 @@ explain select * from t1 where a < 20;
set
optimizer_switch
=@
save_optimizer_switch
;
set
optimizer_switch
=@
save_optimizer_switch
;
--
echo
#
--
echo
# BUG#629684: Unreachable code in multi_range_read.cc in maria-5.3-dsmrr-cpk
--
echo
#
delete
from
t0
where
a
>
2
;
insert
into
t0
values
(
NULL
),(
NULL
);
insert
into
t1
values
(
NULL
,
1234
),
(
NULL
,
5678
);
set
@
save_join_cache_level
=@@
join_cache_level
;
set
@@
join_cache_level
=
6
;
explain
select
*
from
t0
,
t1
where
t0
.
a
<=>
t1
.
a
;
select
*
from
t0
,
t1
where
t0
.
a
<=>
t1
.
a
;
set
@@
join_cache_level
=@
save_join_cache_level
;
drop
table
t0
,
t1
;
drop
table
t0
,
t1
;
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