diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2013-06-27 16:41:12 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2013-06-27 16:41:12 +0400 |
commit | 8b7bbcf4dca77690091360e5ae7d011fb74554d6 (patch) | |
tree | f24c3d6df1035e7fab84e9fcbae80af7754a3bd6 /sql/sql_lex.cc | |
parent | 99a8bfe68cdd6411ed24b3fa465d5dd4b70be6dc (diff) | |
download | mariadb-git-8b7bbcf4dca77690091360e5ae7d011fb74554d6.tar.gz |
[SHOW] EXPLAIN UPDATE/DELETE, code re-structuring
- Make query plan be re-saved after the first join execution
(saving it after JOIN::cleanup is too late because EXPLAIN output
is currently produced before that)
- Handle QPF allocation/deallocation for edge cases, like unsuccessful
BINLOG command.
- Work around the problem with UNION's direct subselects not being visible.
- Update test results ("Using temporary; Using filesort" are now always printed
last in the Extra column)
- This cset gets rid of memory leaks/crashes. Some result mismatches still remain.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index c453a599dce..2e4eaf5b721 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -2552,7 +2552,8 @@ void Query_tables_list::destroy_query_tables_list() */ LEX::LEX() - :result(0), option_type(OPT_DEFAULT), is_lex_started(0), + : query_plan_footprint(NULL), + result(0), option_type(OPT_DEFAULT), is_lex_started(0), limit_rows_examined_cnt(ULONGLONG_MAX) { |