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
80212484
Commit
80212484
authored
13 years ago
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MWL#90: Address review feedback part #15
parent
ba300893
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
sql/sql_select.cc
sql/sql_select.cc
+5
-1
No files found.
sql/sql_select.cc
View file @
80212484
...
@@ -6704,6 +6704,10 @@ get_best_combination(JOIN *join)
...
@@ -6704,6 +6704,10 @@ get_best_combination(JOIN *join)
else
if
(
create_ref_for_key
(
join
,
j
,
keyuse
,
used_tables
))
else
if
(
create_ref_for_key
(
join
,
j
,
keyuse
,
used_tables
))
DBUG_RETURN
(
TRUE
);
// Something went wrong
DBUG_RETURN
(
TRUE
);
// Something went wrong
loop_end:
loop_end:
/*
Save records_read in JOIN_TAB so that select_describe()/etc don't have
to access join->best_positions[].
*/
j
->
records_read
=
(
ha_rows
)
join
->
best_positions
[
tablenr
].
records_read
;
j
->
records_read
=
(
ha_rows
)
join
->
best_positions
[
tablenr
].
records_read
;
join
->
map2table
[
j
->
table
->
tablenr
]
=
j
;
join
->
map2table
[
j
->
table
->
tablenr
]
=
j
;
...
@@ -7765,7 +7769,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
...
@@ -7765,7 +7769,7 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
/* First push down constant conditions from on expressions */
/* First push down constant conditions from on expressions */
for
(
JOIN_TAB
*
join_tab
=
first_linear_tab
(
join
,
WITHOUT_CONST_TABLES
);
for
(
JOIN_TAB
*
join_tab
=
first_linear_tab
(
join
,
WITHOUT_CONST_TABLES
);
join_tab
;
join_tab
;
join_tab
=
next_linear_tab
(
join
,
join_tab
,
WITH
OUT
_BUSH_ROOTS
))
join_tab
=
next_linear_tab
(
join
,
join_tab
,
WITH_BUSH_ROOTS
))
{
{
if
(
*
join_tab
->
on_expr_ref
)
if
(
*
join_tab
->
on_expr_ref
)
{
{
...
...
This diff is collapsed.
Click to expand it.
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