-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-32294 2nd execution problem with inconsistent outer context paths
WORK IN PROGRESS context {select_lex, outer_context} elements made private, accessor function will now skip merged selects. SELECT_LEX::resolved_here contains a list of Item_fields that is resolved in that select. It is used to calculate new_used_tables_cache in Item_subselect::recalc_used_tables. We can compare new/old calculations with (in the correct directory and with the trace file enabled) grep used_tables_cache mysqld.trace It currently works, except when it doesn't, i.e. select * from t1 where t1c in ( select * from ( select t2a from (select * from t2) table2 where t2a in ( select t3a from t3 where t3a in ( select t4a from t4 where t4a < any(select t5c from t5 where t5a > t2a) ) ) ) dt ); resolved_here isn't being correctly set in select #1 after merges. Working on it.
- Loading branch information
1 parent
1739608
commit aa65f45
Showing
12 changed files
with
3,183 additions
and
6 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.