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

MDEV-7856: EXPLAIN FORMAT=JSON should show partitions

This commit is contained in:
Oleksandr Byelkin
2015-04-08 10:13:36 +02:00
parent abba4184e6
commit 697194461a
9 changed files with 152 additions and 40 deletions

View File

@@ -51,6 +51,9 @@ it into the slow query log.
*/
#ifndef SQL_EXPLAIN_INCLUDED
#define SQL_EXPLAIN_INCLUDED
class String_list: public List<char>
{
public:
@@ -646,6 +649,7 @@ public:
/* id and 'select_type' are cared-of by the parent Explain_select */
StringBuffer<32> table_name;
StringBuffer<32> used_partitions;
String_list used_partitions_list;
// valid with ET_USING_MRR
StringBuffer<32> mrr_type;
StringBuffer<32> firstmatch_table_name;
@@ -768,6 +772,7 @@ public:
const char *select_type;
StringBuffer<32> used_partitions;
String_list used_partitions_list;
bool used_partitions_set;
bool impossible_where;
@@ -863,3 +868,4 @@ public:
};
#endif //SQL_EXPLAIN_INCLUDED