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
e59e5296
Commit
e59e5296
authored
Mar 26, 2013
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
1009832c
4eb245f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
sql/opt_range.cc
sql/opt_range.cc
+0
-3
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
sql/opt_range.cc
View file @
e59e5296
...
@@ -3341,10 +3341,7 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item *cond)
...
@@ -3341,10 +3341,7 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item *cond)
param
.
is_ror_scan
=
FALSE
;
param
.
is_ror_scan
=
FALSE
;
if
(
create_key_parts_for_pseudo_indexes
(
&
param
,
used_fields
))
if
(
create_key_parts_for_pseudo_indexes
(
&
param
,
used_fields
))
{
free_root
(
&
alloc
,
MYF
(
0
));
goto
free_alloc
;
goto
free_alloc
;
}
param
.
prev_tables
=
param
.
read_tables
=
0
;
param
.
prev_tables
=
param
.
read_tables
=
0
;
param
.
current_table
=
table
->
map
;
param
.
current_table
=
table
->
map
;
...
...
sql/sql_select.cc
View file @
e59e5296
...
@@ -6988,7 +6988,7 @@ double table_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
...
@@ -6988,7 +6988,7 @@ double table_cond_selectivity(JOIN *join, uint idx, JOIN_TAB *s,
/* Discount the selectivity of the access method used to join table s */
/* Discount the selectivity of the access method used to join table s */
if
(
s
->
quick
&&
s
->
quick
->
index
!=
MAX_KEY
)
if
(
s
->
quick
&&
s
->
quick
->
index
!=
MAX_KEY
)
{
{
if
(
join
->
positions
[
idx
].
key
==
0
)
if
(
join
->
positions
[
idx
].
key
==
0
)
{
{
sel
*=
table
->
quick_rows
[
s
->
quick
->
index
]
/
table_records
;
sel
*=
table
->
quick_rows
[
s
->
quick
->
index
]
/
table_records
;
}
}
...
...
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