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
c0ca15ab
Commit
c0ca15ab
authored
May 04, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-4270: crash in fix_semijoin_strategies_for_picked_join_order
- Added testcase
parent
b3720ff7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
mysql-test/r/join_outer_innodb.result
mysql-test/r/join_outer_innodb.result
+22
-0
mysql-test/t/join_outer_innodb.test
mysql-test/t/join_outer_innodb.test
+23
-0
No files found.
mysql-test/r/join_outer_innodb.result
View file @
c0ca15ab
...
...
@@ -476,3 +476,25 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t10 ALL PRIMARY NULL NULL NULL 3 Using where; Using join buffer (flat, BNL join)
drop view v1;
drop table t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11,t12,t13,t14,t15,t16;
#
# MDEV-4270: crash in fix_semijoin_strategies_for_picked_join_order
#
drop table if exists t1,t2,t3;
Warnings:
Note 1051 Unknown table 't1'
Note 1051 Unknown table 't2'
Note 1051 Unknown table 't3'
create table t2(a int,unique key (a)) engine=innodb;
create table t3(b int) engine=innodb;
create table t1(a int,b int)engine=innodb;
set @mdev4270_opl= @@optimizer_prune_level;
set @mdev4270_osd= @@optimizer_search_depth;
set optimizer_prune_level=0;
set optimizer_search_depth=2;
select 1 from t1 join t2 a
natural left join t2 b
natural right outer join t3;
1
drop table t1,t2,t3;
set optimizer_prune_level=@mdev4270_opl;
set optimizer_search_depth=@mdev4270_osd;
mysql-test/t/join_outer_innodb.test
View file @
c0ca15ab
...
...
@@ -350,3 +350,26 @@ explain select * from v1;
drop
view
v1
;
drop
table
t1
,
t2
,
t3
,
t4
,
t5
,
t6
,
t7
,
t8
,
t9
,
t10
,
t11
,
t12
,
t13
,
t14
,
t15
,
t16
;
--
echo
#
--
echo
# MDEV-4270: crash in fix_semijoin_strategies_for_picked_join_order
--
echo
#
drop
table
if
exists
t1
,
t2
,
t3
;
create
table
t2
(
a
int
,
unique
key
(
a
))
engine
=
innodb
;
create
table
t3
(
b
int
)
engine
=
innodb
;
create
table
t1
(
a
int
,
b
int
)
engine
=
innodb
;
set
@
mdev4270_opl
=
@@
optimizer_prune_level
;
set
@
mdev4270_osd
=
@@
optimizer_search_depth
;
set
optimizer_prune_level
=
0
;
set
optimizer_search_depth
=
2
;
select
1
from
t1
join
t2
a
natural
left
join
t2
b
natural
right
outer
join
t3
;
drop
table
t1
,
t2
,
t3
;
set
optimizer_prune_level
=@
mdev4270_opl
;
set
optimizer_search_depth
=@
mdev4270_osd
;
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