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
1ec399ce
Commit
1ec399ce
authored
Oct 15, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup.
parent
105e3ae6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
+0
-23
sql/sql_lex.cc
sql/sql_lex.cc
+0
-23
No files found.
sql/sql_lex.cc
View file @
1ec399ce
...
...
@@ -4250,29 +4250,6 @@ int st_select_lex_unit::save_union_explain(Explain_query *output)
SELECT_LEX
*
first
=
first_select
();
Explain_union
*
eu
=
new
(
output
->
mem_root
)
Explain_union
;
/*
TODO: The following code should be eliminated. If we have a capability to
save Query Plan Footprints, we should just save them, and never need to
print "query plan already deleted".
*/
if
(
first
&&
!
first
->
next_select
()
&&
!
first
->
join
)
{
/*
If there is only one child, 'first', and it has join==NULL, emit "not in
EXPLAIN state" error.
*/
const
char
*
msg
=
"Query plan already deleted"
;
first
->
set_explain_type
(
TRUE
/* on_the_fly */
);
Explain_select
*
explain
=
new
(
output
->
mem_root
)
Explain_select
;
explain
->
select_id
=
first
->
select_number
;
explain
->
select_type
=
first
->
type
;
explain
->
message
=
msg
;
output
->
add_node
(
explain
);
eu
->
add_select
(
explain
->
select_id
);
return
0
;
}
for
(
SELECT_LEX
*
sl
=
first
;
sl
;
sl
=
sl
->
next_select
())
eu
->
add_select
(
sl
->
select_number
);
...
...
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