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
2a79abcd
Commit
2a79abcd
authored
Sep 19, 2022
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile on Windows
parent
95698097
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/sql_select.cc
sql/sql_select.cc
+4
-4
No files found.
sql/sql_select.cc
View file @
2a79abcd
...
...
@@ -29698,7 +29698,7 @@ static bool get_range_limit_read_cost(const JOIN_TAB *tab,
if
(
kp
>
0
)
{
ha_rows
ref_rows;
double
ref_rows
;
/*
Two possible cases:
1. ref(const) uses the same #key parts as range access.
...
...
@@ -29708,17 +29708,17 @@ static bool get_range_limit_read_cost(const JOIN_TAB *tab,
if
(
kp
==
table
->
opt_range
[
keynr
].
key_parts
)
ref_rows
=
best_rows
;
else
ref_rows=
(ha_rows)
table->key_info[keynr].actual_rec_per_key(kp-1);
ref_rows
=
table
->
key_info
[
keynr
].
actual_rec_per_key
(
kp
-
1
);
if
(
ref_rows
>
0
)
{
double
tmp
=
cost_for_index_read
(
tab
->
join
->
thd
,
table
,
keynr
,
ref_rows,
(
ha_rows
)
ref_rows
,
(
ha_rows
)
tab
->
worst_seeks
);
if
(
tmp
<
best_cost
)
{
best_cost
=
tmp
;
best_rows=
(double)
ref_rows;
best_rows
=
ref_rows
;
}
}
}
...
...
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