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
1eab462c
Commit
1eab462c
authored
Jan 18, 2005
by
sergefp@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-review fixes for the previous cset. No code behavior changes.
parent
6303ca7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
sql/opt_range.cc
sql/opt_range.cc
+8
-3
No files found.
sql/opt_range.cc
View file @
1eab462c
...
...
@@ -50,7 +50,12 @@
#define test_use_count(A) {}
#endif
/*
Convert double value to #rows. Currently this does floor(), and we
might consider using round() instead.
*/
#define double2rows(x) ((ha_rows)(x))
static
int
sel_cmp
(
Field
*
f
,
char
*
a
,
char
*
b
,
uint8
a_flag
,
uint8
b_flag
);
static
char
is_null_string
[
2
]
=
{
1
,
0
};
...
...
@@ -2437,7 +2442,7 @@ ROR_INTERSECT_INFO* ror_intersect_init(const PARAM *param)
FALSE
))
return
NULL
;
info
->
is_covering
=
FALSE
;
info
->
index_scan_costs
=
0.0
f
;
info
->
index_scan_costs
=
0.0
;
info
->
index_records
=
0
;
info
->
out_rows
=
param
->
table
->
file
->
records
;
bitmap_clear_all
(
&
info
->
covered_fields
);
...
...
@@ -2707,7 +2712,7 @@ static bool ror_intersect_add(ROR_INTERSECT_INFO *info,
DBUG_PRINT
(
"info"
,
(
"New out_rows= %g"
,
info
->
out_rows
));
DBUG_PRINT
(
"info"
,
(
"New cost= %g, %scovering"
,
info
->
total_cost
,
info
->
is_covering
?
""
:
"non-"
));
DBUG_RETURN
(
true
);
DBUG_RETURN
(
TRUE
);
}
...
...
@@ -2894,7 +2899,7 @@ TRP_ROR_INTERSECT *get_best_ror_intersect(const PARAM *param, SEL_TREE *tree,
*/
if
(
cpk_scan
&&
!
intersect
->
is_covering
)
{
if
(
ror_intersect_add
(
intersect
,
cpk_scan
,
true
)
&&
if
(
ror_intersect_add
(
intersect
,
cpk_scan
,
TRUE
)
&&
(
intersect
->
total_cost
<
min_cost
))
{
cpk_scan_used
=
TRUE
;
...
...
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