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
a86dd5b7
Commit
a86dd5b7
authored
Feb 23, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/timka/mysql/src/5.0-virgin
into mysql.com:/home/timka/mysql/src/5.0-bug-8576
parents
e6944e4d
9c7879c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sql/opt_range.cc
sql/opt_range.cc
+6
-2
No files found.
sql/opt_range.cc
View file @
a86dd5b7
...
@@ -7030,8 +7030,12 @@ get_best_group_min_max(PARAM *param, SEL_TREE *tree)
...
@@ -7030,8 +7030,12 @@ get_best_group_min_max(PARAM *param, SEL_TREE *tree)
cur_group_key_parts
,
tree
,
cur_index_tree
,
cur_group_key_parts
,
tree
,
cur_index_tree
,
cur_quick_prefix_records
,
have_min
,
have_max
,
cur_quick_prefix_records
,
have_min
,
have_max
,
&
cur_read_cost
,
&
cur_records
);
&
cur_read_cost
,
&
cur_records
);
/*
if
(
cur_read_cost
<
best_read_cost
)
If cur_read_cost is lower than best_read_cost use cur_index.
Do not compare doubles directly because they may have different
representations (64 vs. 80 bits).
*/
if
(
cur_read_cost
<
best_read_cost
-
(
DBL_EPSILON
*
cur_read_cost
))
{
{
index_info
=
cur_index_info
;
index_info
=
cur_index_info
;
index
=
cur_index
;
index
=
cur_index
;
...
...
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