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
c0028bd2
Commit
c0028bd2
authored
Sep 25, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fix incorrectly-removed piece of code JOIN::save_qpf
- update mysqld--help.result
parent
ccca3394
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
mysql-test/r/mysqld--help.result
mysql-test/r/mysqld--help.result
+1
-1
sql/sql_select.cc
sql/sql_select.cc
+9
-2
No files found.
mysql-test/r/mysqld--help.result
View file @
c0028bd2
...
...
@@ -344,7 +344,7 @@ The following options may be given as the first argument:
log if it is open.
--log-slow-verbosity=name
log-slow-verbosity=[value[,value ...]] where value is one
of 'innodb', 'query_plan'
of 'innodb', 'query_plan'
, 'explain'
--log-tc=name Path to transaction coordinator log (used for
transactions that affect more than one storage engine,
when binary log is disabled).
...
...
sql/sql_select.cc
View file @
c0028bd2
...
...
@@ -22553,8 +22553,6 @@ int JOIN::save_qpf(QPF_query *output, bool need_tmp_table, bool need_order,
table_map
used_tables
=
0
;
join
->
select_lex
->
set_explain_type
(
true
);
uint
select_id
=
join
->
select_lex
->
select_number
;
qp_sel
->
select_id
=
join
->
select_lex
->
select_number
;
qp_sel
->
select_type
=
join
->
select_lex
->
type
;
...
...
@@ -22563,6 +22561,15 @@ int JOIN::save_qpf(QPF_query *output, bool need_tmp_table, bool need_order,
for
(
JOIN_TAB
*
tab
=
first_breadth_first_tab
(
join
,
WALK_OPTIMIZATION_TABS
);
tab
;
tab
=
next_breadth_first_tab
(
join
,
WALK_OPTIMIZATION_TABS
,
tab
))
{
uint
select_id
;
if
(
tab
->
bush_root_tab
)
{
JOIN_TAB
*
first_sibling
=
tab
->
bush_root_tab
->
bush_children
->
start
;
select_id
=
first_sibling
->
emb_sj_nest
->
sj_subq_pred
->
get_identifier
();
}
else
select_id
=
join
->
select_lex
->
select_number
;
TABLE
*
table
=
tab
->
table
;
TABLE_LIST
*
table_list
=
tab
->
table
->
pos_in_table_list
;
char
buff4
[
512
];
...
...
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