Sergey Petrunya
382e81ca84
MDEV-270: SHOW EXPLAIN: server crashes in JOIN::print_explain on a query with
...
select tables optimized away
- Take into account, that for some degenerate joins instead of "join->table_count=0"
the code sets "join->tables_list=0".
2012-05-15 15:56:50 +04:00
Sergey Petrunya
b3841ae9e4
MDEV-267: SHOW EXPLAIN: Server crashes in JOIN::print_explain on most of queries
...
- Make SHOW EXPLAIN code handle degenerate subquery cases (No tables, impossible where, etc)
2012-05-14 22:39:00 +04:00
Sergey Petrunya
6bce336624
MDEV-240: SHOW EXPLAIN: Assertion `this->optimized == 2' failed
...
- Fix the bug: SHOW EXPLAIN may hit a case where a join is partially
optimized.
- Change JOIN::optimized to use enum instead of numeric constants
2012-05-11 18:13:06 +04:00
Sergey Petrunya
6fae4447f0
# MDEV-239: Assertion `field_types == 0 ... ' failed in Protocol_text::store...
...
- Make all functions that produce parts of EXPLAIN output take
explain_flags as parameter, instead of looking into thd->lex->describe
2012-05-10 15:13:57 +04:00
Sergey Petrunya
58b9164f04
MDEV-238: SHOW EXPLAIN: Server crashes in JOIN::print_explain with FROM subquery and GROUP BY
...
- Support SHOW EXPLAIN for selects that have "Using temporary; Using filesort".
2012-05-10 13:43:48 +04:00
Sergey Petrunya
cdc9a1172d
MWL#182: Explain running statements:
...
Make SHOW EXPLAIN work for queries that do "Using temporary" and/or "Using filesort"
- Patch#1: Don't lose "Using temporary/filesort" in the SHOW EXPLAIN output.
2012-05-10 01:45:38 +05:30
Sergey Petrunya
ff40705f89
Make SHOW EXPLAIN FOR produce a warning with the original text of query
...
that the EXPLAIN is for.
2012-04-26 08:48:31 +05:30
Sergey Petrunya
ca8aa3901c
MWL#182: Explain running statements
...
- Code cleanup
2012-04-26 06:40:36 +05:30
Sergey Petrunya
8c4fc9ba75
MWL#182: Explain running statements: merge with 5.3-main
2012-04-13 14:01:15 -07:00
Sergey Petrunya
ca020dfa9e
MWL#182: Explain running statements
...
- Get subqueries to work, part #1 .
2011-10-28 02:30:02 +04:00
Sergey Petrunya
ba09d25abc
Fix typo bug in UNION handling, add tests for SHOW EXPLAIN for UNION.
2011-10-27 21:34:41 +04:00
Sergey Petrunya
27f760143c
- Testing: add DBUG_EXECUTE_IF("show_explain_probe_2"... which fires
...
only for selects with given select_id.
- Steps towards making SHOW EXPLAIN work for UNIONs.
2011-09-25 13:05:58 +04:00
Sergey Petrunya
203bbfe569
MWL#182: Explain running statements
...
- Implement new approach to testing (the DBUG_EXECUTE_IF variant)
- add an 'evalp' mysqltest command that is like 'eval' except that
it prints the original query.
- Fix select_describe() not to change join_tab[i]->type
- More tests
2011-09-24 21:56:42 +04:00
Sergey Petrunya
d9045bce1d
-Make show_explain.test stable
...
- Fix st_select_lex::set_explain_type() to allow producing exactly the
same EXPLAINs as it did before. SHOW EXPLAIN output may produce
select_type=SIMPLE instead or select_type=PRIMARY or vice versa (which
is ok because values of select_type weren't self-consistent in this
regard to begin with)
2011-08-27 09:47:21 +04:00
Sergey Petrunya
84cb5de047
MWL#182: Explain running statements
...
- Further progress with the code
- Testcases.
2011-08-24 14:41:13 +04:00