1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-7970: EXPLAIN FORMAT=JSON does not print HAVING

Printing non-trivial HAVING added.
This commit is contained in:
Oleksandr Byelkin
2015-09-09 16:29:50 +02:00
parent 79140b0383
commit da3ec3d421
7 changed files with 271 additions and 3 deletions

View File

@@ -209,6 +209,7 @@ public:
Explain_select(MEM_ROOT *root, bool is_analyze) :
Explain_basic_join(root),
message(NULL),
having(NULL), having_value(Item::COND_UNDEF),
using_temporary(false), using_filesort(false),
time_tracker(is_analyze),
ops_tracker(is_analyze)
@@ -231,7 +232,11 @@ public:
/* Expensive constant condition */
Item *exec_const_cond;
/* HAVING condition */
COND *having;
Item::cond_result having_value;
/* Global join attributes. In tabular form, they are printed on the first row */
bool using_temporary;
bool using_filesort;