diff options
author | Monty <monty@mariadb.org> | 2022-06-13 17:45:37 +0300 |
---|---|---|
committer | Sergei Petrunia <sergey@mariadb.com> | 2023-02-02 22:55:21 +0300 |
commit | 1d82e5daf7174a402a603c553357dcb78515eb04 (patch) | |
tree | a832d42e1a0bd87d6ad655fda2118a875014dfcb /mysql-test/include/explain_non_select.inc | |
parent | 249475b99cf32dfa12efbbf7058238587c90ca47 (diff) | |
download | mariadb-git-1d82e5daf7174a402a603c553357dcb78515eb04.tar.gz |
Move join->emb_smj_nest setting to choose_plan()
This cleans up the interface for choose_plan() as it is not depending
on setting join->emb_sj_nest.
choose_plan() now sets up join->emb_sj_nest and join->allowed_tables before
calling optimize_straight_join() and best_extension_by_limited_search().
Other things:
- Converted some 'if' to DBUG_ASSERT() as these should always be true.
- Calculate 'allowed_tables' in choose_plan() as this never changes in
the childs.
- Added assert to check that next_emb->nested_join->n_tables doesn't
get to a wrong value.
- Documented some variables in sql_select.h
Diffstat (limited to 'mysql-test/include/explain_non_select.inc')
0 files changed, 0 insertions, 0 deletions