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
6f5ea702
Commit
6f5ea702
authored
Feb 24, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge work:/home/bk/mysql-4.1
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1
parents
17a76b00
8f89795e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
sql/sql_select.cc
sql/sql_select.cc
+4
-2
No files found.
sql/sql_select.cc
View file @
6f5ea702
...
@@ -1394,7 +1394,7 @@ static ha_rows get_quick_record_count(SQL_SELECT *select,TABLE *table,
...
@@ -1394,7 +1394,7 @@ static ha_rows get_quick_record_count(SQL_SELECT *select,TABLE *table,
0 ok
0 ok
1 Fatal error
1 Fatal error
*/
*/
static
bool
static
bool
make_join_statistics
(
JOIN
*
join
,
TABLE_LIST
*
tables
,
COND
*
conds
,
make_join_statistics
(
JOIN
*
join
,
TABLE_LIST
*
tables
,
COND
*
conds
,
DYNAMIC_ARRAY
*
keyuse_array
)
DYNAMIC_ARRAY
*
keyuse_array
)
...
@@ -1703,7 +1703,7 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds,
...
@@ -1703,7 +1703,7 @@ make_join_statistics(JOIN *join,TABLE_LIST *tables,COND *conds,
sizeof
(
POSITION
)
*
join
->
const_tables
);
sizeof
(
POSITION
)
*
join
->
const_tables
);
join
->
best_read
=
1.0
;
join
->
best_read
=
1.0
;
}
}
DBUG_RETURN
(
get_best_combination
(
join
));
DBUG_RETURN
(
join
->
thd
->
killed
||
get_best_combination
(
join
));
}
}
...
@@ -2532,6 +2532,8 @@ find_best(JOIN *join,table_map rest_tables,uint idx,double record_count,
...
@@ -2532,6 +2532,8 @@ find_best(JOIN *join,table_map rest_tables,uint idx,double record_count,
swap
(
JOIN_TAB
*
,
join
->
best_ref
[
idx
],
*
pos
);
swap
(
JOIN_TAB
*
,
join
->
best_ref
[
idx
],
*
pos
);
find_best
(
join
,
rest_tables
&
~
real_table_bit
,
idx
+
1
,
find_best
(
join
,
rest_tables
&
~
real_table_bit
,
idx
+
1
,
current_record_count
,
current_read_time
);
current_record_count
,
current_read_time
);
if
(
thd
->
killed
)
return
;
swap
(
JOIN_TAB
*
,
join
->
best_ref
[
idx
],
*
pos
);
swap
(
JOIN_TAB
*
,
join
->
best_ref
[
idx
],
*
pos
);
}
}
if
(
join
->
select_options
&
SELECT_STRAIGHT_JOIN
)
if
(
join
->
select_options
&
SELECT_STRAIGHT_JOIN
)
...
...
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