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
cc3680cb
Commit
cc3680cb
authored
Oct 04, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
ada0850c
1bb7a314
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
sql/opt_subselect.cc
sql/opt_subselect.cc
+8
-3
No files found.
sql/opt_subselect.cc
View file @
cc3680cb
...
...
@@ -858,14 +858,14 @@ bool convert_join_subqueries_to_semijoins(JOIN *join)
in_subq
->
unit
->
first_select
()
->
join
->
table_count
>=
MAX_TABLES
)
break
;
if
(
convert_subq_to_sj
(
join
,
in_subq
))
DBUG_RETURN
(
TRUE
)
;
goto
restore_arena_and_fail
;
}
else
{
if
(
join
->
table_count
+
1
>=
MAX_TABLES
)
break
;
if
(
convert_subq_to_jtbm
(
join
,
in_subq
,
&
remove_item
))
DBUG_RETURN
(
TRUE
)
;
goto
restore_arena_and_fail
;
}
if
(
remove_item
)
{
...
...
@@ -874,7 +874,7 @@ bool convert_join_subqueries_to_semijoins(JOIN *join)
Item
*
replace_me
=
in_subq
->
original_item
();
if
(
replace_where_subcondition
(
join
,
tree
,
replace_me
,
new
Item_int
(
1
),
FALSE
))
DBUG_RETURN
(
TRUE
);
/* purecov: inspected */
goto
restore_arena_and_fail
;
}
}
//skip_conversion:
...
...
@@ -951,6 +951,11 @@ bool convert_join_subqueries_to_semijoins(JOIN *join)
thd
->
restore_active_arena
(
arena
,
&
backup
);
join
->
select_lex
->
sj_subselects
.
empty
();
DBUG_RETURN
(
FALSE
);
restore_arena_and_fail:
if
(
arena
)
thd
->
restore_active_arena
(
arena
,
&
backup
);
DBUG_RETURN
(
TRUE
);
}
...
...
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