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:
@@ -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
|
||||
|
Reference in New Issue
Block a user