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
e74bf079
Commit
e74bf079
authored
Sep 25, 2014
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Better comments
parent
f5d84542
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
sql/sql_select.cc
sql/sql_select.cc
+9
-6
No files found.
sql/sql_select.cc
View file @
e74bf079
...
@@ -25224,15 +25224,18 @@ uint get_index_for_order(ORDER *order, TABLE *table, SQL_SELECT *select,
...
@@ -25224,15 +25224,18 @@ uint get_index_for_order(ORDER *order, TABLE *table, SQL_SELECT *select,
return
MAX_KEY
;
return
MAX_KEY
;
}
}
/*
/*
Count how much times conditions are true for several first rows of the table
Count how many times the specified conditions are true for first rows_to_read
rows of the table.
@param thd
t
hread handle
@param thd
T
hread handle
@param rows_to_read
how much rows to check
@param rows_to_read
How many rows to sample
@param table
table which should be checked
@param table
Table to use
@conds conds
list of conditions and counta
rs for them
@conds conds
INOUT List of conditions and counte
rs for them
@return number of really checked rows or 0 in case of error or empty table
@return Number of we've checked. It can be equal or less than rows_to_read.
0 is returned for error or when the table had no rows.
*/
*/
ulong
check_selectivity
(
THD
*
thd
,
ulong
check_selectivity
(
THD
*
thd
,
...
...
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