Commit 12500188 authored by Sergei Petrunia's avatar Sergei Petrunia

Fix typos in JSON MRR output

parent 70166215
...@@ -1492,7 +1492,7 @@ EXPLAIN ...@@ -1492,7 +1492,7 @@ EXPLAIN
"buffer_type": "flat", "buffer_type": "flat",
"buffer_size": "256Kb", "buffer_size": "256Kb",
"join_type": "BKA", "join_type": "BKA",
"mrr_type": "; Rowid-ordered scan" "mrr_type": "Rowid-ordered scan"
} }
} }
} }
...@@ -1535,7 +1535,7 @@ ANALYZE ...@@ -1535,7 +1535,7 @@ ANALYZE
"buffer_type": "flat", "buffer_type": "flat",
"buffer_size": "256Kb", "buffer_size": "256Kb",
"join_type": "BKA", "join_type": "BKA",
"mrr_type": "; Rowid-ordered scan", "mrr_type": "Rowid-ordered scan",
"r_filtered": 100 "r_filtered": 100
} }
} }
......
...@@ -1809,7 +1809,10 @@ void Explain_table_access::append_tag_name(String *str, enum explain_extra_tag t ...@@ -1809,7 +1809,10 @@ void Explain_table_access::append_tag_name(String *str, enum explain_extra_tag t
str->append(STRING_WITH_LEN(" join")); str->append(STRING_WITH_LEN(" join"));
str->append(STRING_WITH_LEN(")")); str->append(STRING_WITH_LEN(")"));
if (bka_type.mrr_type.length()) if (bka_type.mrr_type.length())
{
str->append(STRING_WITH_LEN("; "));
str->append(bka_type.mrr_type); str->append(bka_type.mrr_type);
}
break; break;
} }
......
...@@ -2620,7 +2620,8 @@ static void add_mrr_explain_info(String *str, uint mrr_mode, handler *file) ...@@ -2620,7 +2620,8 @@ static void add_mrr_explain_info(String *str, uint mrr_mode, handler *file)
sizeof(mrr_str_buf)); sizeof(mrr_str_buf));
if (len > 0) if (len > 0)
{ {
str->append(STRING_WITH_LEN("; ")); if (str->length())
str->append(STRING_WITH_LEN("; "));
str->append(mrr_str_buf, len); str->append(mrr_str_buf, len);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment