summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2014-08-09 06:37:56 +0400
committerSergei Petrunia <psergey@askmonty.org>2014-08-09 06:37:56 +0400
commit33d53c4c24881d4906cacc791c2049faa96a0ee6 (patch)
tree18bf6a1bd9527509543d40b12fd4c2018b914258 /sql/sql_parse.cc
parent83f0ddc6294ea8d4e424a540a043bf88ee4a8c8d (diff)
downloadmariadb-git-33d53c4c24881d4906cacc791c2049faa96a0ee6.tar.gz
MDEV-6109: EXPLAIN JSON
- Add first testcases - Don't overquote when printing conditions - Other small output fixes
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc16
1 files changed, 2 insertions, 14 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index ab2ef71d22b..ed2f76a223e 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -5269,21 +5269,9 @@ static bool execute_sqlcom_select(THD *thd, TABLE_LIST *all_tables)
top-level LIMIT
*/
result->reset_offset_limit();
- if (thd->lex->explain_json)
+ if (lex->explain_json)
{
- /*
- Json_writer writer;
- writer.start_object();
- thd->lex->explain->print_explain_json(&writer, thd->lex->analyze_stmt);
- writer.end_object();
-
- const CHARSET_INFO *cs= system_charset_info;
- List<Item> item_list;
- String *buf= &writer.output;
- item_list.push_back(new Item_string(buf->ptr(), buf->length(), cs));
- result->send_data(item_list);
- */
- thd->lex->explain->print_explain_json(result, thd->lex->analyze_stmt);
+ lex->explain->print_explain_json(result, lex->analyze_stmt);
}
else
{