1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

EXPLAIN FORMAT=JSON: produce the 'ref' column.

This commit is contained in:
Sergei Petrunia
2014-08-12 18:14:56 +04:00
parent 84485dbe7c
commit a9d43d70f5
4 changed files with 49 additions and 41 deletions

View File

@@ -464,6 +464,13 @@ private:
};
class String_list: public List<char>
{
public:
bool append_str(MEM_ROOT *mem_root, const char *str);
};
/*
EXPLAIN data structure for a single JOIN_TAB.
*/
@@ -489,9 +496,8 @@ public:
StringBuffer<32> used_partitions;
bool used_partitions_set;
/* Empty string means "NULL" will be printed */
List<char> possible_keys;
//StringBuffer<32> possible_keys_str;
/* Empty means "NULL" will be printed */
String_list possible_keys;
/*
Index use: key name and length.
@@ -509,8 +515,7 @@ public:
*/
Explain_index_use hash_next_key;
bool ref_set; /* not set means 'NULL' should be printed */
StringBuffer<32> ref;
String_list ref_list;
bool rows_set; /* not set means 'NULL' should be printed */
ha_rows rows;